Permission class

Defines the permissions which can be checked and requested.



Permission.byValue(int value)


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Integer representation of the Permission.


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]


accessMediaLocation → const Permission
Android: Allows an application to access any geographic locations persisted in the user's shared collection.
const Permission._(17)
activityRecognition → const Permission
When running on Android Q and above: Activity Recognition When running on Android < Q: Nothing iOS: Nothing
const Permission._(18)
calendar → const Permission
Android: Calendar iOS: Calendar (Events)
const Permission._(0)
camera → const Permission
Android: Camera iOS: Photos (Camera Roll and Camera)
const Permission._(1)
contacts → const Permission
Android: Contacts iOS: AddressBook
const Permission._(2)
ignoreBatteryOptimizations → const Permission
Android: Ignore Battery Optimizations
const Permission._(15)
location → const PermissionWithService
Android: Fine and Coarse Location iOS: CoreLocation (Always and WhenInUse)
const PermissionWithService._(3)
locationAlways → const PermissionWithService
Android: When running on Android < Q: Fine and Coarse Location When running on Android Q and above: Background Location Permission iOS: CoreLocation - Always
const PermissionWithService._(4)
locationWhenInUse → const PermissionWithService
Android: Fine and Coarse Location iOS: CoreLocation - WhenInUse
const PermissionWithService._(5)
mediaLibrary → const Permission
Android: None iOS: MPMediaLibrary
const Permission._(6)
microphone → const Permission
Android: Microphone iOS: Microphone
const Permission._(7)
notification → const Permission
Android: Notification iOS: Notification
const Permission._(16)
phone → const PermissionWithService
Android: Phone iOS: Nothing
const PermissionWithService._(8)
photos → const Permission
Android: Nothing iOS: Photos
const Permission._(9)
reminders → const Permission
Android: Nothing iOS: Reminders
const Permission._(10)
sensors → const Permission
Android: Body Sensors iOS: CoreMotion
const Permission._(11)
sms → const Permission
Android: Sms iOS: Nothing
const Permission._(12)
speech → const Permission
Android: Microphone iOS: Speech
const Permission._(13)
storage → const Permission
Android: External Storage iOS: Access to folders like Documents or Downloads. Implicitly granted.
const Permission._(14)
unknown → const Permission
The unknown only used for return type, never requested
const Permission._(19)
values → const List<Permission>
Returns a list of all possible PermissionGroup values.
const <Permission>[calendar, camera, contacts, location, locationAlways, locationWhenInUse, mediaLibrary, microphone, phone, photos, reminders, sensors, sms, speech, storage, ignoreBatteryOptimi…