Keys class

Constants used for platform channel communication and data mapping.

Keys defines all the constant strings used for:

  • Method channel names and method identifiers
  • Argument keys for passing data between Dart and native code
  • Settings keys for configuration options
  • Broadcast message identifiers for background events

These constants ensure consistent communication between the Flutter plugin and the native Android/iOS implementations.

Constructors

Keys()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

ARG_ACCURACY → const String
Argument key: Location accuracy in meters.
ARG_ALTITUDE → const String
Argument key: Altitude in meters.
ARG_CALLBACK → const String
Argument key: Location update callback handle.
ARG_CALLBACK_DISPATCHER → const String
Argument key: Callback dispatcher handle.
ARG_DISPOSE_CALLBACK → const String
Argument key: Service disposal callback handle.
ARG_HEADING → const String
Argument key: Heading in degrees (0-360).
ARG_INIT_CALLBACK → const String
Argument key: Service initialization callback handle.
ARG_INIT_DATA_CALLBACK → const String
Argument key: Data passed to initialization callback.
ARG_IS_MOCKED → const String
Argument key: Whether location is from a mock provider.
ARG_LATITUDE → const String
Argument key: Latitude coordinate.
ARG_LOCATION → const String
Argument key: Location data object.
ARG_LONGITUDE → const String
Argument key: Longitude coordinate.
ARG_NOTIFICATION_CALLBACK → const String
Argument key: Notification tap callback handle.
ARG_PROVIDER → const String
Argument key: Location provider name (e.g., 'gps', 'network').
ARG_SETTINGS → const String
Argument key: Settings configuration object.
ARG_SPEED → const String
Argument key: Speed in meters per second.
ARG_SPEED_ACCURACY → const String
Argument key: Speed accuracy in meters per second.
ARG_TIME → const String
Argument key: Timestamp in milliseconds since epoch.
BACKGROUND_CHANNEL_ID → const String
Platform channel ID for background service communication.
BCM_DISPOSE → const String
Broadcast message: Service disposed.
BCM_INIT → const String
Broadcast message: Service initialized.
BCM_NOTIFICATION_CLICK → const String
Broadcast message: Notification clicked.
BCM_SEND_LOCATION → const String
Broadcast message: Location update received.
CHANNEL_ID → const String
Platform channel ID for main plugin communication.
METHOD_PLUGIN_INITIALIZE_SERVICE → const String
Method name: Initialize the location service.
METHOD_PLUGIN_IS_REGISTER_LOCATION_UPDATE → const String
Method name: Check if location updates are registered.
METHOD_PLUGIN_IS_SERVICE_RUNNING → const String
Method name: Check if the service is running.
METHOD_PLUGIN_REGISTER_LOCATION_UPDATE → const String
Method name: Register for location updates.
METHOD_PLUGIN_UN_REGISTER_LOCATION_UPDATE → const String
Method name: Unregister from location updates.
METHOD_PLUGIN_UPDATE_NOTIFICATION → const String
Method name: Update notification text.
METHOD_SERVICE_INITIALIZED → const String
Method name: Service initialization notification.
SETTINGS_ACCURACY → const String
Settings key: Location accuracy level.
SETTINGS_ANDROID_LOCATION_CLIENT → const String
Settings key: Android location client type.
SETTINGS_ANDROID_NOTIFICATION_BIG_MSG → const String
Settings key: Android notification expanded message.
SETTINGS_ANDROID_NOTIFICATION_CHANNEL_NAME → const String
Settings key: Android notification channel name.
SETTINGS_ANDROID_NOTIFICATION_ICON → const String
Settings key: Android notification icon name.
SETTINGS_ANDROID_NOTIFICATION_ICON_COLOR → const String
Settings key: Android notification icon color.
SETTINGS_ANDROID_NOTIFICATION_MSG → const String
Settings key: Android notification message.
SETTINGS_ANDROID_NOTIFICATION_TITLE → const String
Settings key: Android notification title.
SETTINGS_ANDROID_WAKE_LOCK_TIME → const String
Settings key: Android wake lock time in minutes.
SETTINGS_AUTO_STOP → const String
Settings key: Auto-stop on app background.
SETTINGS_DISTANCE_FILTER → const String
Settings key: Distance filter in meters.
SETTINGS_INTERVAL → const String
Settings key: Update interval in seconds.
SETTINGS_IOS_SHOWS_BACKGROUND_LOCATION_INDICATOR → const String
Settings key: iOS background location indicator visibility.
SETTINGS_IOS_STOP_WITH_TERMINATE → const String
Settings key: iOS stop tracking on app termination.