GeofencingService

@MapboxExperimental
interface GeofencingService

Geofencing API for detecting entry/exit states of monitored features' geometries.

Functions

Link copied to clipboard
@MapboxExperimental
abstract fun addFeature(feature: Feature, callback: AddFeatureCallback)

Adds a feature to be monitored for geofencing activities.

Link copied to clipboard
@MapboxExperimental
abstract fun addObserver(observer: GeofencingObserver, callback: AddObserverCallback)

Adds a geofence monitored features' observer.

Link copied to clipboard
@MapboxExperimental
abstract fun clearFeatures(callback: ClearFeaturesCallback)

Clears all monitored features.

Link copied to clipboard
@MapboxExperimental
abstract fun configure(options: GeofencingOptions, callback: ConfigureCallback)

Set options affecting the behavior of the geofencing service.

Link copied to clipboard
@MapboxExperimental
abstract fun getFeature(identifier: String, callback: GetFeatureCallback)

Gets a feature by its identifier.

Link copied to clipboard
@MapboxExperimental
abstract fun getOptions(callback: GetOptionsCallback)

Returns the current options affecting the behavior of the geofencing service.

Link copied to clipboard
@MapboxExperimental
abstract fun removeFeature(identifier: String, callback: RemoveFeatureCallback)

Removes a feature (defined by its identifier) to be monitored for geofencing activities.

Link copied to clipboard
@MapboxExperimental
abstract fun removeObserver(observer: GeofencingObserver, callback: RemoveObserverCallback)

Removes a geofence monitored features' observer.