AppleSettings class
Represents different iOS specific settings with which you can set a value other then the default value of the setting.
- Inheritance
-
- Object
- LocationSettings
- AppleSettings
Constructors
- AppleSettings.new({bool pauseLocationUpdatesAutomatically = false, ActivityType activityType = ActivityType.other, LocationAccuracy accuracy = LocationAccuracy.best, int distanceFilter = 0, Duration? timeLimit, bool showBackgroundLocationIndicator = false, bool allowBackgroundLocationUpdates = true})
- Initializes a new AppleSettings instance with default values.
Properties
- accuracy → LocationAccuracy
-
Defines the desired accuracy that should be used to determine the
location data.
finalinherited
- activityType → ActivityType
-
The location manager uses the information in this property as a cue
to determine when location updates may be automatically paused.
final
- allowBackgroundLocationUpdates → bool
-
Flag to allow the app to receive location updates in the background (iOS only)
final
- distanceFilter → int
-
The minimum distance (measured in meters) a device must move
horizontally before an update event is generated.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- pauseLocationUpdatesAutomatically → bool
-
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.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBackgroundLocationIndicator → bool
-
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.
final
- timeLimit → Duration?
-
The timeLimit parameter allows you to specify a timeout interval (by
default no time limit is configured).
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a JSON representation of this class.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited