java.lang.Object | |
↳ | com.google.android.gms.location.GeofencingEvent |
Represents an event from the GeofencingApi
API. The event can be
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
GeofencingEvent object from the given intent. | |||||||||||
Returns the error code that explains the error that triggered the intent
specified in
fromIntent(Intent) . | |||||||||||
Returns the transition type of the geofence transition alert.
| |||||||||||
Returns a list of geofences that triggered this geofence transition
alert.
| |||||||||||
Gets the location that triggered the geofence transition.
| |||||||||||
Whether an error triggered this intent.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a GeofencingEvent
object from the given intent.
Parameters | |
---|---|
intent |
Intent :
the intent to extract the geofencing event data from |
Returns | |
---|---|
GeofencingEvent |
a GeofencingEvent object or null if the given
intent is null
|
Returns the error code that explains the error that triggered the intent
specified in fromIntent(Intent)
.
Returns | |
---|---|
int |
the error code specified in GeofenceStatusCodes or
-1 if hasError() returns false .
|
Returns the transition type of the geofence transition alert.
Returns | |
---|---|
int |
-1 if the intent specified in 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.
Returns | |
---|---|
List<Geofence> |
a list of geofences that triggered this geofence transition
alert or null if the intent specified in
fromIntent(Intent) is not generated for a geofence
transition alert
|
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.
Returns | |
---|---|
Location |
the location that triggered this geofence alert or null
if it's not included in the intent specified in
fromIntent(Intent)
|
Whether an error triggered this intent.
Returns | |
---|---|
boolean |
true if an error triggered the intent specified in
fromIntent(Intent) , otherwise false
|