Package es.situm.sdk.model.cartography
Class Geofence
- java.lang.Object
-
- es.situm.sdk.model.Resource
-
- es.situm.sdk.model.cartography.Geofence
-
- All Implemented Interfaces:
android.os.Parcelable
,Filterable
public class Geofence extends Resource implements android.os.Parcelable
Represents a geographic region in a building. Can be monitored to check if an user enter or exits the polygon and to get analytics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Geofence.Builder
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<Geofence>
CREATOR
-
Fields inherited from class es.situm.sdk.model.Resource
EMPTY_IDENTIFIER, EMPTY_IDENTIFIER_BACKWARDS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
describeContents()
boolean
equals(Object o)
String
getBuildingIdentifier()
Returns the building identifier to which the geofence belongsString
getCode()
Returns the code of the geofenceString
getDescription()
Deprecated.this method is replaced by @link #getInfoHtml()String
getFloorIdentifier()
Returns the floor identifier of the floor where it is placedString
getInfoHtml()
Returns the information of the geofenceString
getName()
Returns the name of the geofenceList<Point>
getPolygonPoints()
Returns a list of points of the closed polygon that represents the geofenceint
hashCode()
String
toString()
void
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class es.situm.sdk.model.Resource
getCreatedAt, getCustomFields, getIdentifier, getUpdatedAt
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<Geofence> CREATOR
-
-
Method Detail
-
getName
public String getName()
Returns the name of the geofence
-
getCode
public String getCode()
Returns the code of the geofence
-
getDescription
@Deprecated public String getDescription()
Deprecated.this method is replaced by @link #getInfoHtml()Returns the description of the geofence
-
getInfoHtml
public String getInfoHtml()
Returns the information of the geofence- Returns:
- string containing additional information of the geofence in html format
-
getFloorIdentifier
public String getFloorIdentifier()
Returns the floor identifier of the floor where it is placed
-
getBuildingIdentifier
public String getBuildingIdentifier()
Returns the building identifier to which the geofence belongs
-
getPolygonPoints
public List<Point> getPolygonPoints()
Returns a list of points of the closed polygon that represents the geofence
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-