public interface GeofencingApi
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTRA_GEOFENCE_LIST
Extra passed in
Intent that is fired when requesting proximity
updates. |
static java.lang.String |
EXTRA_TRANSITION
Extra passed in
Intent that is fired when requesting proximity
updates. |
static java.lang.String |
EXTRA_TRIGGERING_LOCATION
Extra passed in
Intent that is fired when requesting proximity
updates. |
| Modifier and Type | Method and Description |
|---|---|
PendingResult<Status> |
addGeofences(LostApiClient client,
GeofencingRequest geofencingRequest,
android.app.PendingIntent pendingIntent)
Sets
PendingIntent to be notified when the device enters or exits one of the specified
geofences. |
PendingResult<Status> |
addGeofences(LostApiClient client,
java.util.List<Geofence> geofences,
android.app.PendingIntent pendingIntent)
Deprecated.
Use
addGeofences(LostApiClient, GeofencingRequest,
PendingIntent) instead.
Sets PendingIntent to be notified when the device enters or exits one of the specified
geofences. |
PendingResult<Status> |
removeGeofences(LostApiClient client,
java.util.List<java.lang.String> geofenceRequestIds)
Removes geofences for a given list of request ids
|
PendingResult<Status> |
removeGeofences(LostApiClient client,
android.app.PendingIntent pendingIntent)
Removes geofences for a given
PendingIntent |
static final java.lang.String EXTRA_TRANSITION
Intent that is fired when requesting proximity
updates. Value is an integer.static final java.lang.String EXTRA_GEOFENCE_LIST
Intent that is fired when requesting proximity
updates. Value is array of Geofence objects.static final java.lang.String EXTRA_TRIGGERING_LOCATION
Intent that is fired when requesting proximity
updates. Value is Location object.PendingResult<Status> addGeofences(LostApiClient client, GeofencingRequest geofencingRequest, android.app.PendingIntent pendingIntent)
PendingIntent to be notified when the device enters or exits one of the specified
geofences.client - Connected client to receive geofence updates for.geofencingRequest - Request containing geofences to receive updates for.pendingIntent - Intent to be notified when geofences are entered/exited.java.lang.IllegalStateException - if the client is not connected at the time of this call.PendingResult<Status> addGeofences(LostApiClient client, java.util.List<Geofence> geofences, android.app.PendingIntent pendingIntent)
addGeofences(LostApiClient, GeofencingRequest,
PendingIntent) instead.
Sets PendingIntent to be notified when the device enters or exits one of the specified
geofences.client - Connected client to receive geofence updates for.geofences - Geofences to receive updates for.pendingIntent - Intent to be notified when geofences are entered/exited.java.lang.IllegalStateException - if the client is not connected at the time of this call.PendingResult<Status> removeGeofences(LostApiClient client, java.util.List<java.lang.String> geofenceRequestIds)
client - Connected client to remove geofence updates for.geofenceRequestIds - Geofence ids to remove updates for.java.lang.IllegalStateException - if the client is not connected at the time of this call.PendingResult<Status> removeGeofences(LostApiClient client, android.app.PendingIntent pendingIntent)
PendingIntentclient - Connected client to remove geofence updates for.pendingIntent - Intent to remove updates for.java.lang.IllegalStateException - if the client is not connected at the time of this call.