Permission enum

A specific permission to request via BackgroundGeolocation.requestPermission.

Name Value Description
location "location" Location authorization per GeoConfig.locationAuthorizationRequest — motion untouched.
motion "motion" Motion / activity-recognition permission alone.

Omitting the argument to BackgroundGeolocation.requestPermission requests everything the current configuration requires — location, then motion — exactly like BackgroundGeolocation.start.

Inheritance
Available extensions

Values

location → const Permission

Location authorization, per GeoConfig.locationAuthorizationRequest. The motion permission is not requested.

const Permission('location')
motion → const Permission

The motion / activity-recognition permission alone — ACTIVITY_RECOGNITION on Android 10+, Motion & Fitness on iOS.

const Permission('motion')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The wire value sent to the native SDK.
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

Constants

values → const List<Permission>
A constant List of the values in this enum, in order of their declaration.