AndroidSettings class

Represents different Android specific settings with which you can set a value other then the default value of the setting.

Inheritance

Constructors

AndroidSettings({bool forceLocationManager = false, LocationAccuracy accuracy = LocationAccuracy.best, int distanceFilter = 0, Duration? intervalDuration, Duration? timeLimit, ForegroundNotificationConfig? foregroundNotificationConfig})
Initializes a new AndroidSpecificSettings instance with default values.

Properties

accuracy LocationAccuracy
Defines the desired accuracy that should be used to determine the location data.
finalinherited
distanceFilter int
The minimum distance (measured in meters) a device must move horizontally before an update event is generated.
finalinherited
forceLocationManager bool
Forces the Geolocator plugin to use the legacy LocationManager instead of the FusedLocationProviderClient (Android only).
final
foregroundNotificationConfig ForegroundNotificationConfig?
If this is set then the services is started as a Foreground service with a persistent notification showing the user that the service will continue running in the background.
final
hashCode int
The hash code for this object.
no setterinherited
intervalDuration Duration?
The desired interval for active location updates.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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>
Serializes the PlatformSpecificSettings to a map message
override
toString() String
A string representation of this object.
inherited

Operators

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