Class Geofence

  • All Implemented Interfaces:
    android.os.Parcelable, MapperInterface, Filterable

    public class Geofence
    extends Resource
    implements android.os.Parcelable, MapperInterface
    Represents a geographic region in a building. Can be monitored to check if an user enter or exits the polygon and to get analytics.
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Geofence> CREATOR
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the geofence
      • getCode

        public java.lang.String getCode()
        Returns the code of the geofence
      • getDescription

        @Deprecated
        public java.lang.String getDescription()
        Deprecated.
        this method is replaced by @link #getInfoHtml()
        Returns the description of the geofence
      • getInfoHtml

        public java.lang.String getInfoHtml()
        Returns the information of the geofence
        Returns:
        string containing additional information of the geofence in html format
      • getFloorIdentifier

        public java.lang.String getFloorIdentifier()
        Returns the floor identifier of the floor where it is placed
      • getBuildingIdentifier

        public java.lang.String getBuildingIdentifier()
        Returns the building identifier to which the geofence belongs
      • getPolygonPoints

        public java.util.List<Point> getPolygonPoints()
        Returns a list of points of the closed polygon that represents the geofence
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Resource
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Resource
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Returns:
        Map with the information of the object mapped