Config class
Main configuration class for the background geolocation service.
Constructors
-
Config({DesiredAccuracy? desiredAccuracy, double? distanceFilter, int? locationUpdateInterval, int? fastestLocationUpdateInterval, int? activityRecognitionInterval, int? stopTimeout, int? stopAfterElapsedMinutes, int? stopDetectionDelay, int? motionTriggerDelay, int? minimumActivityRecognitionConfidence, bool? useSignificantChangesOnly, bool? allowIdenticalLocations, bool? disableMotionActivityUpdates, bool? disableStopDetection, bool? disableProviderChangeRecord, bool? disableLocationAuthorizationAlert, bool? enableHeadless, bool? startOnBoot, bool? stopOnTerminate, bool? foregroundService, bool? preventSuspend, bool? pausesLocationUpdatesAutomatically, bool? showsBackgroundLocationIndicator, double? stationaryRadius, double? desiredOdometerAccuracy, double? elasticityMultiplier, double? speedJumpFilter, bool? stopOnStationary, bool? geofenceModeHighAccuracy, bool? geofenceInitialTriggerEntry, int? geofenceProximityRadius, int? maxMonitoredGeofences, int? locationTimeout, int? httpTimeout, int? maxRetry, int? retryDelay, double? retryDelayMultiplier, int? maxRetryDelay, String? bgTaskId, String? url, String? method, JsonMap? headers, JsonMap? params, JsonMap? extras, bool? autoSync, bool? batchSync, int? maxBatchSize, int? autoSyncThreshold, bool? disableAutoSyncOnCellular, int? queueMaxDays, int? queueMaxRecords, String? idempotencyHeader, PersistMode? persistMode, int? maxDaysToPersist, int? maxRecordsToPersist, String? locationTemplate, String? geofenceTemplate, String? httpRootProperty, List<
String> ? schedule, bool? scheduleUseAlarmManager, bool? forceReloadOnBoot, bool? forceReloadOnLocationChange, bool? forceReloadOnMotionChange, bool? forceReloadOnGeofence, bool? forceReloadOnHeartbeat, bool? forceReloadOnSchedule, bool? enableTimestampMeta, NotificationConfig? notification, LogLevel? logLevel, int? logMaxDays, int? heartbeatInterval, PermissionRationale? backgroundPermissionRationale, List<ActivityType> ? triggerActivities, AdaptiveTrackingConfig? adaptiveTracking, LowBatteryConfig? lowBattery, SpoofDetectionConfig? spoofDetection}) -
const
- Config.fitness()
-
Fitness/trail preset (high accuracy, frequent updates).
factory
- Config.fromMap(JsonMap map)
-
factory
- Config.passive()
-
Passive preset (lowest power usage).
factory
Properties
- activityRecognitionInterval → int?
-
final
- adaptiveTracking → AdaptiveTrackingConfig?
-
final
- allowIdenticalLocations → bool?
-
final
- autoSync → bool?
-
final
- autoSyncThreshold → int?
-
final
- backgroundPermissionRationale → PermissionRationale?
-
final
- batchSync → bool?
-
final
- bgTaskId → String?
-
final
- desiredAccuracy → DesiredAccuracy?
-
final
- desiredOdometerAccuracy → double?
-
final
- disableAutoSyncOnCellular → bool?
-
final
- disableLocationAuthorizationAlert → bool?
-
final
- disableMotionActivityUpdates → bool?
-
final
- disableProviderChangeRecord → bool?
-
final
- disableStopDetection → bool?
-
final
- distanceFilter → double?
-
final
- elasticityMultiplier → double?
-
final
- enableHeadless → bool?
-
final
- enableTimestampMeta → bool?
-
final
- extras → JsonMap?
-
final
- fastestLocationUpdateInterval → int?
-
final
- forceReloadOnBoot → bool?
-
final
- forceReloadOnGeofence → bool?
-
final
- forceReloadOnHeartbeat → bool?
-
final
- forceReloadOnLocationChange → bool?
-
final
- forceReloadOnMotionChange → bool?
-
final
- forceReloadOnSchedule → bool?
-
final
- foregroundService → bool?
-
final
- geofenceInitialTriggerEntry → bool?
-
final
- geofenceModeHighAccuracy → bool?
-
final
- geofenceProximityRadius → int?
-
final
- geofenceTemplate → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → JsonMap?
-
final
- heartbeatInterval → int?
-
final
- httpRootProperty → String?
-
final
- httpTimeout → int?
-
final
- idempotencyHeader → String?
-
final
- locationTemplate → String?
-
final
- locationTimeout → int?
-
final
- locationUpdateInterval → int?
-
final
- logLevel → LogLevel?
-
final
- logMaxDays → int?
-
final
- lowBattery → LowBatteryConfig?
-
final
- maxBatchSize → int?
-
final
- maxDaysToPersist → int?
-
final
- maxMonitoredGeofences → int?
-
final
- maxRecordsToPersist → int?
-
final
- maxRetry → int?
-
final
- maxRetryDelay → int?
-
final
- method → String?
-
final
- minimumActivityRecognitionConfidence → int?
-
final
- motionTriggerDelay → int?
-
final
- notification → NotificationConfig?
-
final
- params → JsonMap?
-
final
- pausesLocationUpdatesAutomatically → bool?
-
final
- persistMode → PersistMode?
-
final
- preventSuspend → bool?
-
final
- queueMaxDays → int?
-
final
- queueMaxRecords → int?
-
final
- retryDelay → int?
-
final
- retryDelayMultiplier → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schedule
→ List<
String> ? -
final
- scheduleUseAlarmManager → bool?
-
final
- showsBackgroundLocationIndicator → bool?
-
final
- speedJumpFilter → double?
-
final
- spoofDetection → SpoofDetectionConfig?
-
final
- startOnBoot → bool?
-
final
- stationaryRadius → double?
-
final
- stopAfterElapsedMinutes → int?
-
final
- stopDetectionDelay → int?
-
final
- stopOnStationary → bool?
-
final
- stopOnTerminate → bool?
-
final
- stopTimeout → int?
-
final
-
triggerActivities
→ List<
ActivityType> ? -
final
- url → String?
-
final
- useSignificantChangesOnly → bool?
-
final
Methods
-
copyWith(
{DesiredAccuracy? desiredAccuracy, double? distanceFilter, int? locationUpdateInterval, int? fastestLocationUpdateInterval, int? activityRecognitionInterval, int? stopTimeout, int? stopAfterElapsedMinutes, int? stopDetectionDelay, int? motionTriggerDelay, int? minimumActivityRecognitionConfidence, bool? useSignificantChangesOnly, bool? allowIdenticalLocations, bool? disableMotionActivityUpdates, bool? disableStopDetection, bool? disableProviderChangeRecord, bool? disableLocationAuthorizationAlert, bool? enableHeadless, bool? startOnBoot, bool? stopOnTerminate, bool? foregroundService, bool? preventSuspend, bool? pausesLocationUpdatesAutomatically, bool? showsBackgroundLocationIndicator, double? stationaryRadius, double? desiredOdometerAccuracy, double? elasticityMultiplier, double? speedJumpFilter, bool? stopOnStationary, bool? geofenceModeHighAccuracy, bool? geofenceInitialTriggerEntry, int? geofenceProximityRadius, int? maxMonitoredGeofences, int? locationTimeout, int? httpTimeout, int? maxRetry, int? retryDelay, double? retryDelayMultiplier, int? maxRetryDelay, String? bgTaskId, String? url, String? method, JsonMap? headers, JsonMap? params, JsonMap? extras, bool? autoSync, bool? batchSync, int? maxBatchSize, int? autoSyncThreshold, bool? disableAutoSyncOnCellular, int? queueMaxDays, int? queueMaxRecords, String? idempotencyHeader, PersistMode? persistMode, int? maxDaysToPersist, int? maxRecordsToPersist, String? locationTemplate, String? geofenceTemplate, String? httpRootProperty, List< String> ? schedule, bool? scheduleUseAlarmManager, bool? forceReloadOnBoot, bool? forceReloadOnLocationChange, bool? forceReloadOnMotionChange, bool? forceReloadOnGeofence, bool? forceReloadOnHeartbeat, bool? forceReloadOnSchedule, bool? enableTimestampMeta, NotificationConfig? notification, LogLevel? logLevel, int? logMaxDays, int? heartbeatInterval, PermissionRationale? backgroundPermissionRationale, List<ActivityType> ? triggerActivities, AdaptiveTrackingConfig? adaptiveTracking, LowBatteryConfig? lowBattery, SpoofDetectionConfig? spoofDetection}) → Config -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → JsonMap - Converts to map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited