Package-level declarations

Types

Link copied to clipboard
sealed class GeofenceError

Geofence-related errors.

Link copied to clipboard
open class GeofenceManager(context: Context, policyProvider: () -> GeofencePolicy, profileProvider: (String) -> PolicyProfile?, auditTrail: AuditTrail?, clock: Clock = Clock.systemUTC())

Manages geofence monitoring and policy profile switching.

Link copied to clipboard
data class GeofencePolicy(val enabled: Boolean = false, val regions: List<GeofenceRegion> = emptyList(), val defaultPolicyProfile: String = PolicyProfile.DEFAULT_PROFILE_NAME, val dwellTimeMs: Long, val locationAccuracyMeters: Float = 100.0f, val loiteringDelayMs: Int, val notificationResponsiveness: Int)

Policy for geofence-aware configuration switching.

Link copied to clipboard
@Serializable
data class GeofenceRegion(val id: String, val latitude: Double, val longitude: Double, val radiusMeters: Float, val policyProfile: String, val priority: Int = 0, val transitionTypes: Set<TransitionType> = setOf( TransitionType.ENTER, TransitionType.EXIT, ), val displayName: String? = null)

Defines a geofence region with associated policy profile.

Link copied to clipboard
sealed class GeofenceStartResult

Result of starting geofence monitoring.

Link copied to clipboard

Base class for geofence transition listeners with default no-op implementations.

Link copied to clipboard

Callback interface for geofence transition events.

Link copied to clipboard
data class PolicyProfile(val name: String, val syncPolicy: SyncPolicy? = null, val telemetryPolicy: TelemetryPolicy? = null, val diagnosticsSchedulePolicy: DiagnosticsSchedulePolicy? = null, val description: String? = null)

Named policy configuration profile.

Link copied to clipboard
@Serializable
enum TransitionType : Enum<TransitionType>

Types of geofence transitions.