@Beta 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,
IALocation location) |
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 . |
IALocation |
getTriggeringLocation()
Get the
location which triggered this event. |
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, IALocation location)
public IAGeofenceEvent(android.os.Parcel in)
public int getGeofenceTransition()
IAGeofence.GEOFENCE_TRANSITION_ENTER
,
IAGeofence.GEOFENCE_TRANSITION_EXIT
,
IAGeofence.GEOFENCE_TRANSITION_DWELL
public java.util.ArrayList<IAGeofence> getTriggeringGeofences()
geofences
in this IAGeofenceEvent
.public IALocation getTriggeringLocation()
location
which triggered this event.IALocation
which triggered this evenpublic java.lang.String toString()
toString
in class java.lang.Object
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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