AndroidConfig class

Android configuration that will only be used by the Android implementation

Default Values:

  • channelName: "Background Tracking"
  • notificationBody: "Background tracking active. Tap to open."
  • notificationIcon: null => "Uses the launcher icon"
  • cancelTrackingActionText: "Stop Tracking."
  • enableNotificationLocationUpdates: false
  • enableCancelTrackingAction: true
  • trackingInterval: 10 seconds
Annotations

Constructors

AndroidConfig({String channelName = 'Background Tracking', String notificationBody = 'Background tracking active. Tap to open.', String? notificationIcon, bool enableNotificationLocationUpdates = false, String cancelTrackingActionText = 'Stop Tracking', bool enableCancelTrackingAction = true, Duration trackingInterval = const Duration(seconds: 10), double? distanceFilterMeters})
const

Properties

cancelTrackingActionText String
This string will be uses as text of the notification cancel action
final
channelName String
The name that will be used for the permanent notification channel.
final
distanceFilterMeters double?
The distance in meters that should be moved before updates are sent. Defaults to no filter (null)
final
enableCancelTrackingAction bool
This option will show a cancel tracking action in the notification
final
enableNotificationLocationUpdates bool
enableNotificationLocationUpdates will only be used when logging is enabled
final
hashCode int
The hash code for this object.
no setterinherited
notificationBody String
The message that will be shown in the permanent notification
final
notificationIcon String?
The icon string will be used to get the id of an icon that is added to you android native project
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackingInterval Duration
The interval in which location updates are requested to be delivered. This is a request to the system, not a guarantee Defaults to an update every 10 seconds
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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