Skip to content

ProviderChangeEvent

public structProviderChangeEvent: Sendable

Location-services provider state delivered to BGGeo.onProviderChange.

The SDK fires this event when the user changes location permissions, toggles device location settings, or — on iOS 14 and later — when the precision authorization level changes between full and reduced accuracy.


Members

accuracyAuthorization

public let accuracyAuthorization: Int

Precision location authorization level. Use the AccuracyAuthorization constants to interpret this value.

On iOS 14 and later this reflects whether the user has granted full or reduced accuracy. On Android this value is always AccuracyAuthorization.Full.

enabled

public let enabled: Bool

true when the device has at least one location provider enabled.

gps

public let gps: Bool

true when the GPS-based location provider is available.

network

public let network: Bool

true when the network-based location provider is available.

status

public let status: CLAuthorizationStatus

Platform authorization status code. Use the AuthorizationStatus constants to interpret this value.