NativeGeofenceErrorCode enum
Errors that can occur when interacting with the native geofence API.
Values
- unknown → const NativeGeofenceErrorCode
- pluginInternal → const NativeGeofenceErrorCode
-
A plugin internal error. Please report these as bugs on GitHub.
- invalidArguments → const NativeGeofenceErrorCode
-
The arguments passed to the method are invalid.
- channelError → const NativeGeofenceErrorCode
-
An error occurred while communicating with the native platform.
- missingLocationPermission → const NativeGeofenceErrorCode
-
The required location permission was not granted.
On Android we need:
ACCESS_FINE_LOCATION
On iOS we need:NSLocationWhenInUseUsageDescription
Please use an external permission manager such as "permission_handler" to request the permission from the user.
- missingBackgroundLocationPermission → const NativeGeofenceErrorCode
-
The required background location permission was not granted.
On Android we need:
ACCESS_BACKGROUND_LOCATION
(for API level 29+) On iOS we need:NSLocationAlwaysAndWhenInUseUsageDescription
Please use an external permission manager such as "permission_handler" to request the permission from the user.
- geofenceNotFound → const NativeGeofenceErrorCode
-
The geofence deletion failed because the geofence was not found. This is safe to ignore.
- callbackNotFound → const NativeGeofenceErrorCode
-
The specified geofence callback was not found. This can happen for old geofence callback functions that were moved/renamed. Please re-create those geofences.
- callbackInvalid → const NativeGeofenceErrorCode
-
The specified geofence callback function signature is invalid. This can happen if the callback function signature has changed or due to plugin contract changes.
Properties
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
-
values
→ const List<
NativeGeofenceErrorCode> - A constant List of the values in this enum, in order of their declaration.