public interface IAGeofenceListener
IALocationManager when geofences are
triggered. Note that to get the geofence events, you need to request the location updates also.
Sample usage:
mLocationManager.requestLocationUpdates(mLocationListener)
mLocationManager.addGeofences(geofenceRequest)
mGeofenceListener = new IAGeofenceListener() {
public void onGeofencesTriggered(IAGeofenceEvent geofenceEvent) {
// Handle the geofence event
}
}
mLocationManager.requestGeofenceUpdates(mGeofenceListener);
| Modifier and Type | Method and Description |
|---|---|
void |
onGeofencesTriggered(IAGeofenceEvent geofenceEvent)
Called when one or more geofences have triggered with the user specified event triggers.
|
void onGeofencesTriggered(IAGeofenceEvent geofenceEvent)
There are no restrictions on the use of the supplied geofenceEvent object.
geofenceEvent - The new geofence event containing triggered geofences, trigger type and
triggering location.