Permissions enum Null safety

Permission constants for android and ios

Inheritance

Constructors

Permissions()
const

Values

accessMediaLocation → const Permissions

Android: Allows an application to access any geographic locations persisted in the user's shared collection.

const Permissions(0)
activityRecognition → const Permissions

When running on Android Q and above: Activity Recognition When running on Android < Q: Nothing iOS: Nothing

const Permissions(1)
bluetooth → const Permissions

iOS 13 and above: The authorization state of Core Bluetooth manager. When running < iOS 13 or Android this is always allowed.

const Permissions(2)
calendar → const Permissions

Android: Calendar iOS: Calendar (Events)

const Permissions(3)
camera → const Permissions

Android: Camera iOS: Photos (Camera Roll and Camera)

const Permissions(4)
contacts → const Permissions

Android: Contacts iOS: AddressBook

const Permissions(5)
ignoreBatteryOptimizations → const Permissions

Android: Ignore Battery Optimizations

const Permissions(6)
location → const Permissions

Android: Fine and Coarse Location iOS: CoreLocation (Always and WhenInUse)

const Permissions(7)
locationAlways → const Permissions

Android: When running on Android < Q: Fine and Coarse Location When running on Android Q and above: Background Location Permission iOS: CoreLocation - Always

const Permissions(8)
locationWhenInUse → const Permissions

Android: Fine and Coarse Location iOS: CoreLocation - WhenInUse

const Permissions(9)
mediaLibrary → const Permissions

Android: None iOS: MPMediaLibrary

const Permissions(10)
microphone → const Permissions

Android: Microphone iOS: Microphone

const Permissions(11)
notification → const Permissions

Android: Notification iOS: Notification

const Permissions(12)
phone → const Permissions

Android: Phone iOS: Nothing

const Permissions(13)
photos → const Permissions

Android: Nothing iOS: Photos iOS 14+ read & write access level

const Permissions(14)
photosAddOnly → const Permissions

Android: Nothing iOS: Photos iOS 14+ read & write access level

const Permissions(15)
reminders → const Permissions

Android: Nothing iOS: Reminders

const Permissions(16)
sensors → const Permissions

Android: Body Sensors iOS: CoreMotion

const Permissions(17)
sms → const Permissions

Android: Sms iOS: Nothing

const Permissions(18)
speech → const Permissions

Android: Microphone iOS: Speech

const Permissions(19)
storage → const Permissions

Android: External Storage iOS: Access to folders like Documents or Downloads. Implicitly granted.

const Permissions(20)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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<Permissions>
A constant List of the values in this enum, in order of their declaration.
[accessMediaLocation, activityRecognition, bluetooth, calendar, camera, contacts, ignoreBatteryOptimizations, location, locationAlways, locationWhenInUse, mediaLibrary, microphone, notification, phone…