IOSSettings class

iOS-specific settings for background location tracking.

IOSSettings extends LocatorSettings and provides iOS-specific configuration options for location tracking. It allows you to control the background location indicator and app termination behavior.

Example:

final iosSettings = IOSSettings(
  accuracy: LocationAccuracy.NAVIGATION,
  distanceFilter: 10,
  showsBackgroundLocationIndicator: true,
  stopWithTerminate: false,
);
Inheritance

Constructors

IOSSettings({LocationAccuracy accuracy = LocationAccuracy.NAVIGATION, double distanceFilter = 0, bool showsBackgroundLocationIndicator = false, bool stopWithTerminate = false})
Creates an IOSSettings instance.
const

Properties

accuracy LocationAccuracy
The accuracy level for location updates. Default: LocationAccuracy.NAVIGATION
finalinherited
distanceFilter double
Minimum distance in meters between location updates. Location updates are only triggered if the device moves at least this distance from the last reported location. Default: 0 meters (all updates are reported)
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showsBackgroundLocationIndicator bool
Whether to show the blue background location indicator in the status bar.
final
stopWithTerminate bool
Whether to stop location tracking when the app is terminated.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this IOSSettings to a map for native platform communication.
toString() String
A string representation of this object.
inherited

Operators

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