Interface IAGeofenceListener

  • All Known Implementing Classes:
    IAGeofenceListenerSupport

    public interface IAGeofenceListener
    Used for receiving geofence events from the 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);
    
         

    • 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 geofenceEvent object.

        Parameters:
        geofenceEvent - The new geofence event containing triggered geofences, trigger type and triggering location.