Package com.indooratlas.android.sdk
Interface IAGeofenceListener
-
- All Known Implementing Classes:
IAGeofenceListenerSupport
public interface IAGeofenceListenerUsed for receiving geofence events from theIALocationManagerwhen 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);
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonGeofencesTriggered(IAGeofenceEvent geofenceEvent)Called when one or more geofences have triggered with the user specified event triggers.
-
-
-
Method Detail
-
onGeofencesTriggered
void onGeofencesTriggered(IAGeofenceEvent geofenceEvent)
Called when one or more geofences have triggered with the user specified event triggers.There are no restrictions on the use of the supplied
geofenceEventobject.- Parameters:
geofenceEvent- The new geofence event containing triggered geofences, trigger type and triggeringlocation.
-
-