@Beta public interface IAGeofence extends android.os.Parcelable
Modifier and Type | Interface and Description |
---|---|
static class |
IAGeofence.Builder
Builder to configure
IAGeofence . |
Modifier and Type | Field and Description |
---|---|
static int |
GEOFENCE_TRANSITION_DWELL
Geofence dwelling event.
|
static int |
GEOFENCE_TRANSITION_ENTER
Geofence enter event.
|
static int |
GEOFENCE_TRANSITION_EXIT
Geofence exit event.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<double[]> |
getEdges()
Return the edges of the polygon defining this geofence.
|
java.lang.Long |
getExpirationTime()
Return the expiration time for this geofence in milliseconds if set,
null otherwise. |
java.lang.Integer |
getFloor()
Return the
int floor number for this geofence if set, null otherwise. |
java.lang.String |
getId()
Return the identification key for this geofence.
|
java.lang.Long |
getLoiteringDelay()
Return the loitering delay for this geofence in milliseconds if set,
null otherwise. |
double |
getMaxLatitude()
Return the maximum latitude of the geofence in
double . |
double |
getMaxLongitude()
Return the maximum longitude of the geofence in
double . |
double |
getMinLatitude()
Return the minimum latitude of the geofence in
double . |
double |
getMinLongitude()
Return the minimum longitude of the geofence in
double . |
org.json.JSONObject |
getPayload()
Return the
JSONObject payload for this geofence. |
int |
getTransitionTypes()
Return the transition types for this geofence if set,
null otherwise. |
boolean |
hasExpirationTime()
Check whether the expiration time has been set for this geofence.
|
boolean |
hasFloor()
Check whether the floor number has been set for this geofence.
|
boolean |
hasLoiteringDelay()
Check whether the loitering dela} has been set for this geofence.
|
boolean |
hasPayload()
Check whether the payload is empty in this geofence.
|
boolean |
isIncluded(double latitude,
double longitude,
java.lang.Integer floor)
Check whether a WGS84 coordinate (latitude & longitude) in specific floor is included in this
geofence . |
IAGeofence.Builder |
newBuilder() |
static final int GEOFENCE_TRANSITION_ENTER
static final int GEOFENCE_TRANSITION_EXIT
static final int GEOFENCE_TRANSITION_DWELL
IAGeofence.Builder newBuilder()
IAGeofence.Builder
pre-populated with values from this IAGeofence
.boolean isIncluded(double latitude, double longitude, java.lang.Integer floor)
geofence
.latitude
- WGS84 coordinate latitude.longitude
- WGS84 coordinate longitude.floor
- Floor number of the position to be checked. If null
, position can only
be in the geofence if the geofence does not have floor number either.java.lang.String getId()
int getTransitionTypes()
null
otherwise.org.json.JSONObject getPayload() throws java.lang.IllegalArgumentException
JSONObject
payload for this geofence.java.lang.IllegalArgumentException
java.lang.Integer getFloor()
int
floor number for this geofence if set, null
otherwise.java.lang.Long getLoiteringDelay()
null
otherwise.hasLoiteringDelay()
boolean hasLoiteringDelay()
getLoiteringDelay()
boolean hasExpirationTime()
getExpirationTime()
boolean hasFloor()
getFloor()
boolean hasPayload()
getPayload()
java.util.ArrayList<double[]> getEdges()
double getMaxLongitude()
double
.double getMinLongitude()
double
.double getMaxLatitude()
double
.double getMinLatitude()
double
.java.lang.Long getExpirationTime()
null
otherwise.hasExpirationTime()