Package es.situm.sdk.location
Interface GeofenceListener
-
public interface GeofenceListener
Implement this class to get notified about entering/exiting geofences. In order to use correctly these callbacks you must know the following:- Positioning geofences (with trainer_metadata custom field) won't be notified.
- These callbacks only work with indoor locations. Any outdoor location will produce a call to onExitedGeofences with the last positioned geofences as argument.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEnteredGeofences(java.util.List<Geofence> enteredGeofences)
Called when the user enters a geofence.void
onExitedGeofences(java.util.List<Geofence> exitedGeofences)
Called when the user exits a geofence.
-
-
-
Method Detail
-
onEnteredGeofences
void onEnteredGeofences(java.util.List<Geofence> enteredGeofences)
Called when the user enters a geofence.- Parameters:
enteredGeofences
- Listthat the user has entered.
-
onExitedGeofences
void onExitedGeofences(java.util.List<Geofence> exitedGeofences)
Called when the user exits a geofence.- Parameters:
exitedGeofences
- Listthat the user has exited.
-
-