@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
Deprecated.
|
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 list of vertices, as (latitude, longitude), pairs of this polygon.
|
java.lang.Long |
getExpirationTime()
Deprecated.
|
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()
Deprecated.
|
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 . |
java.lang.String |
getName()
Return a human-readable name of the geofence.
|
org.json.JSONObject |
getPayload()
Return the
JSONObject payload for this geofence. |
int |
getTransitionTypes()
Deprecated.
|
boolean |
hasExpirationTime()
Deprecated.
|
boolean |
hasFloor()
Check whether the floor number has been set for this geofence.
|
boolean |
hasLoiteringDelay()
Deprecated.
|
boolean |
hasPayload()
Check whether the payload is empty in this geofence.
|
boolean |
isCloudGeofence() |
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
@Deprecated 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()
java.lang.String getName()
@Deprecated int getTransitionTypes()
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.@Deprecated java.lang.Long getLoiteringDelay()
@Deprecated boolean hasLoiteringDelay()
@Deprecated boolean hasExpirationTime()
boolean hasFloor()
getFloor()
boolean hasPayload()
getPayload()
boolean isCloudGeofence()
java.util.ArrayList<double[]> getEdges()
double getMaxLongitude()
double
.double getMinLongitude()
double
.double getMaxLatitude()
double
.double getMinLatitude()
double
.@Deprecated java.lang.Long getExpirationTime()