@Beta public class IAGeofenceEvent extends Object implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<IAGeofenceEvent> |
CREATOR |
| Constructor and Description |
|---|
IAGeofenceEvent(ArrayList<IAGeofence> geofences,
int transitionType,
IALocation location) |
IAGeofenceEvent(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
static IAGeofenceEvent |
from(android.content.Intent intent)
Extracts an
IAGeofenceEvent from the extras of an Intent or null if
not present. |
int |
getGeofenceTransition()
Get the type of geofence event.
|
ArrayList<IAGeofence> |
getTriggeringGeofences()
Get the list of
geofences in this IAGeofenceEvent. |
IALocation |
getTriggeringLocation()
Get the
location which triggered this event. |
int |
hashCode() |
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<IAGeofenceEvent> CREATOR
public IAGeofenceEvent(ArrayList<IAGeofence> geofences, int transitionType, IALocation location)
public IAGeofenceEvent(android.os.Parcel in)
public int getGeofenceTransition()
IAGeofence.GEOFENCE_TRANSITION_ENTER,
IAGeofence.GEOFENCE_TRANSITION_EXIT,
IAGeofence.GEOFENCE_TRANSITION_DWELLpublic ArrayList<IAGeofence> getTriggeringGeofences()
geofences in this IAGeofenceEvent.public IALocation getTriggeringLocation()
location which triggered this event.IALocation which triggered this evenpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic static IAGeofenceEvent from(android.content.Intent intent)
IAGeofenceEvent from the extras of an Intent or null if
not present. Use this utility method for received Intents after requesting geofence events
with IALocationManager#requestGeofenceUpdates(PendingIntent). The location is stored
in the extra Bundle a byte array with the
IALocationManager.EXTRA_GEOFENCE_EVENT key.intent - Intent to extract the IAGeofenceEvent from. Can be null.IAGeofenceEvent or null