GeofenceTransitionListener

Callback interface for geofence transition events.

Privacy (GDPR Art. 5): Callbacks receive region information only, not the device's actual coordinates.

Since

0.4.0

Inheritors

Functions

Link copied to clipboard
abstract fun onDwell(region: GeofenceRegion)

Called when the device has dwelled in a region for the configured duration.

Link copied to clipboard
abstract fun onError(error: GeofenceError)

Called when geofence monitoring encounters an error.

Link copied to clipboard
abstract fun onRegionEntered(region: GeofenceRegion, profile: PolicyProfile)

Called when the device enters a geofence region.

Link copied to clipboard
abstract fun onRegionExited(region: GeofenceRegion, newProfile: PolicyProfile)

Called when the device exits a geofence region.