Represents an event from the
GeofencingApi API. The event can be
- A geofence triggering event generated when a geofence transition happens.
- An error happens after geofences are registered and being monitored.
Public Method Summary
public static GeofencingEvent fromIntent (Intent intent)
public int getErrorCode ()
public int getGeofenceTransition ()
Returns a list of geofences that triggered this geofence transition alert.
- a list of geofences that triggered this geofence transition
nullif the intent specified in
fromIntent(Intent)is not generated for a geofence transition alert
public Location getTriggeringLocation ()
Gets the location that triggered the geofence transition. Triggering location is only available if the calling app links against Google Play services 5.0 SDK.
- the location that triggered this geofence alert or
nullif it's not included in the intent specified in
public boolean hasError ()
Whether an error triggered this intent.
trueif an error triggered the intent specified in