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 classGeofence.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 intdescribeContents()booleanequals(Object o)StringgetBuildingIdentifier()Returns the building identifier to which the geofence belongsStringgetCode()Returns the code of the geofenceStringgetDescription()Deprecated.this method is replaced by @link #getInfoHtml()StringgetFloorIdentifier()Returns the floor identifier of the floor where it is placedStringgetInfoHtml()Returns the information of the geofenceStringgetName()Returns the name of the geofenceList<Point>getPolygonPoints()Returns a list of points of the closed polygon that represents the geofenceinthashCode()StringtoString()voidwriteToParcel(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:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-