GeolocatorIosConfiguration
GeolocatorIosConfiguration
#
Bases: GeolocatorConfiguration
iOS specific settings.
accuracy
#
accuracy: GeolocatorPositionAccuracy = BEST
Defines the desired accuracy that should be used to determine the location data.
activity_type
#
activity_type: GeolocatorIosActivityType = OTHER
The location manager uses the information in this property as a cue to determine when location updates may be automatically paused.
allow_background_location_updates
#
allow_background_location_updates: bool = True
Flag to allow the app to receive location updates in the background (iOS only)
Note
For this setting to work Info.plist
should contain the following keys:
- UIBackgroundModes and the value should contain "location"
- NSLocationAlwaysUsageDescription
distance_filter
#
distance_filter: int = 0
The minimum distance (measured in meters) a device must move horizontally before an update event is generated.
Set to 0
when you want to be notified of all movements.
pause_location_updates_automatically
#
pause_location_updates_automatically: bool = False
Allows the location manager to pause updates to improve battery life
on the target device without sacrificing location data.
When this property is set to True
, the location manager pauses updates
(and powers down the appropriate hardware) at times when the
location data is unlikely to change.
show_background_location_indicator
#
show_background_location_indicator: bool = False
Flag to ask the Apple OS to show the background location indicator (iOS only) if app starts up and background and requests the users location.
For this setting to work and for the location to be retrieved the user must have granted "always" permissions for location retrieval.
time_limit
#
time_limit: DurationValue = None
Specifies a timeout interval.
For no time limit, set to None
.