GeofencingObserver

@MapboxExperimental
interface GeofencingObserver

Geofencing observer for monitoring entry/dwell/exit from features as well as errors.

Functions

Link copied to clipboard
@MapboxExperimental
abstract fun onDwell(event: GeofencingEvent)

User dwells a monitored feature.

Link copied to clipboard
@MapboxExperimental
abstract fun onEntry(event: GeofencingEvent)

User enters a monitored feature.

Link copied to clipboard
@MapboxExperimental
abstract fun onError(error: GeofencingError)

Called when an error occurs.

Link copied to clipboard
@MapboxExperimental
abstract fun onExit(event: GeofencingEvent)

User exits a monitored feature.

Link copied to clipboard
@MapboxExperimental
abstract fun onUserConsentChanged(isConsentGiven: Boolean)

Called when the end user consent for Geonfencing changes. True if the user consents Geonfencing features.