ProviderChangeEvent class

Event object provided to BackgroundGeolocation.onProviderChange

Constructors

ProviderChangeEvent(Map event)

Properties

accuracyAuthorization int
[Precise: On] switch on the location authorization dialog allowing users to disable high-accuracy location.
getter/setter pair
enabled bool
true when device location-services is enabled.
getter/setter pair
gps bool
true if GPS location provider is enabled.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
network bool
true if network location provider is enabled.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
AUTORIZATION_STATUS
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Return Map representaion of ProviderChangeEvent
toString() String
Return String representation of ProviderChangeEvent for print to logs.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

ACCURACY_AUTHORIZATION_FULL → const int
ACCURACY_AUTHORIZATION_REDUCED → const int
AUTHORIZATION_STATUS_ALWAYS → const int
AUTHORIZATION_STATUS_DENIED → const int
AUTHORIZATION_STATUS_DENIED_ALWAYS → const int
Permanently denied — the OS will not show the permission dialog again and only the device's Settings app can restore the permission. Reported by BackgroundGeolocation.requestPermission for the motion permission on both platforms: Android promotes to this state after two user denials; on iOS a single motion denial is already permanent (iOS never re-prompts), so a denied motion request reports it immediately.
AUTHORIZATION_STATUS_NOT_DETERMINED → const int
AUTHORIZATION_STATUS_RESTRICTED → const int
AUTHORIZATION_STATUS_WHEN_IN_USE → const int