Permission class

Defines the permissions which can be checked and requested.

Implementers
Annotations

Constructors

Permission.byValue(int value)
Creates a Permission using the supplied integer value.
factory

Properties

hashCode int
The hash code for this object.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value int
Integer representation of the Permission.
final

Methods

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

Operators

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

Constants

accessMediaLocation → const Permission
Permission for accessing the device's media library.
Permission._(18)
accessNotificationPolicy → const Permission
Permission for accessing the device's notification policy.
Permission._(27)
activityRecognition → const Permission
Permission for accessing the activity recognition.
Permission._(19)
appTrackingTransparency → const Permission
Permission for accessing the device's tracking state (iOS only).
Permission._(25)
audio → const Permission
Permission for accessing the device's audio files from external storage.
Permission._(33)
bluetooth → const PermissionWithService
Permission for accessing the device's bluetooth adapter state.
PermissionWithService._(21)
bluetoothAdvertise → const Permission
Permission for advertising Bluetooth devices
Permission._(29)
bluetoothConnect → const Permission
Permission for connecting to Bluetooth devices.
Permission._(30)
bluetoothScan → const Permission
Permission for scanning for Bluetooth devices.
Permission._(28)
calendar → const Permission
Permission for accessing the device's calendar.
Permission._(0)
camera → const Permission
Permission for accessing the device's camera.
Permission._(1)
contacts → const Permission
Permission for accessing the device's contacts.
Permission._(2)
criticalAlerts → const Permission
Permission for sending critical alerts (iOS only).
Permission._(26)
ignoreBatteryOptimizations → const Permission
Permission for accessing ignore battery optimizations (Android only).
Permission._(16)
location → const PermissionWithService
Permission for accessing the device's location.
PermissionWithService._(3)
locationAlways → const PermissionWithService
Permission for accessing the device's location when the app is running in the background.
PermissionWithService._(4)
locationWhenInUse → const PermissionWithService
Permission for accessing the device's location when the app is running in the foreground.
PermissionWithService._(5)
manageExternalStorage → const Permission
Permission for accessing the device's external storage.
Permission._(22)
mediaLibrary → const Permission
Permission for accessing the device's media library (iOS 9.3+ only).
Permission._(6)
microphone → const Permission
Permission for accessing the device's microphone.
Permission._(7)
nearbyWifiDevices → const Permission
Permission for connecting to nearby devices via Wi-Fi.
Permission._(31)
notification → const Permission
Permission for pushing notifications.
Permission._(17)
phone → const PermissionWithService
Permission for accessing the device's phone state (Android only).
PermissionWithService._(8)
photos → const Permission
Permission for accessing the device's photos.
Permission._(9)
photosAddOnly → const Permission
Permission for adding photos to the device's photo library (iOS only).
Permission._(10)
reminders → const Permission
Permission for accessing the device's reminders (iOS only).
Permission._(11)
requestInstallPackages → const Permission
Permission for requesting installing packages.
Permission._(24)
scheduleExactAlarm → const Permission
Permission for scheduling exact alarms.
Permission._(34)
sensors → const Permission
Permission for accessing the device's sensors.
Permission._(12)
sensorsAlways → const Permission
Permission for accessing the device's sensors in background.
Permission._(35)
sms → const Permission
Permission for sending and reading SMS messages (Android only).
Permission._(13)
speech → const Permission
Permission for accessing speech recognition.
Permission._(14)
storage → const Permission
Permission for accessing external storage.
Permission._(15)
systemAlertWindow → const Permission
Permission for creating system alert window (Android only).
Permission._(23)
unknown → const Permission
The unknown only used for return type, never requested.
Permission._(20)
values → const List<Permission>
Returns a list of all possible PermissionGroup values.
<Permission>[calendar, camera, contacts, location, locationAlways, locationWhenInUse, mediaLibrary, microphone, phone, photos, photosAddOnly, reminders, sensors, sms, speech, storage, ignoreBatt…
videos → const Permission
Permission for accessing the device's video files from external storage.
Permission._(32)