Represents an event from the GeofencingApi
API. The event can be
| static GeofencingEvent | |
| int |
getErrorCode()
Returns the error code that explains the error that triggered the intent
specified in
fromIntent(Intent).
|
| int |
getGeofenceTransition()
Returns the transition type of the geofence transition alert.
|
| List<Geofence> |
getTriggeringGeofences()
Returns a list of geofences that triggered this geofence transition alert.
|
| Location |
getTriggeringLocation()
Gets the location that triggered the geofence transition.
|
| boolean |
hasError()
Whether an error triggered this intent.
|
Creates a GeofencingEvent
object from the given intent.
| intent | the intent to extract the geofencing event data from |
|---|
GeofencingEvent
object or null if the given intent is null or doesn't
contain geofencing event.Returns the error code that explains the error that triggered the intent specified
in
fromIntent(Intent).
GeofenceStatusCodes
or -1 if hasError()
returns false.Returns the transition type of the geofence transition alert.
fromIntent(Intent) is not generated for a transition alert; Otherwise
returns the GEOFENCE_TRANSITION_ flags value defined in Geofence.Returns a list of geofences that triggered this geofence transition alert.
null if the intent specified in
fromIntent(Intent) is not generated for a geofence transition alertGets the location that triggered the geofence transition.
null if it's not
included in the intent specified in
fromIntent(Intent)Whether an error triggered this intent.
true if an error triggered the intent specified in
fromIntent(Intent), otherwise false