public class IAGeofenceEvent
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<IAGeofenceEvent> |
CREATOR |
| Constructor and Description |
|---|
IAGeofenceEvent(java.util.ArrayList<IAGeofence> geofences,
int transitionType) |
IAGeofenceEvent(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.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.
|
java.util.ArrayList<IAGeofence> |
getTriggeringGeofences()
Get the list of
geofences in this IAGeofenceEvent. |
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<IAGeofenceEvent> CREATOR
public IAGeofenceEvent(java.util.ArrayList<IAGeofence> geofences, int transitionType)
public IAGeofenceEvent(android.os.Parcel in)
public int getGeofenceTransition()
IAGeofence.GEOFENCE_TRANSITION_ENTER,
IAGeofence.GEOFENCE_TRANSITION_EXITpublic java.util.ArrayList<IAGeofence> getTriggeringGeofences()
geofences in this IAGeofenceEvent.public java.lang.String toString()
toString in class java.lang.Objectpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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.addGeofences(IAGeofenceRequest,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