Commit afe1dc2c by Mathias Cochet

permission added

parent 30de83bc
...@@ -55,47 +55,53 @@ class Permission { ...@@ -55,47 +55,53 @@ class Permission {
/// Android: Nothing /// Android: Nothing
/// iOS: Photos /// iOS: Photos
/// iOS 14+ read & write access level
static const photos = Permission._(9); static const photos = Permission._(9);
/// Android: Nothing /// Android: Nothing
/// iOS: Photos
/// iOS 14+ read & write access level
static const photosAddOnly = Permission._(10);
/// Android: Nothing
/// iOS: Reminders /// iOS: Reminders
static const reminders = Permission._(10); static const reminders = Permission._(11);
/// Android: Body Sensors /// Android: Body Sensors
/// iOS: CoreMotion /// iOS: CoreMotion
static const sensors = Permission._(11); static const sensors = Permission._(12);
/// Android: Sms /// Android: Sms
/// iOS: Nothing /// iOS: Nothing
static const sms = Permission._(12); static const sms = Permission._(13);
/// Android: Microphone /// Android: Microphone
/// iOS: Speech /// iOS: Speech
static const speech = Permission._(13); static const speech = Permission._(14);
/// Android: External Storage /// Android: External Storage
/// iOS: Access to folders like `Documents` or `Downloads`. Implicitly /// iOS: Access to folders like `Documents` or `Downloads`. Implicitly
/// granted. /// granted.
static const storage = Permission._(14); static const storage = Permission._(15);
/// Android: Ignore Battery Optimizations /// Android: Ignore Battery Optimizations
static const ignoreBatteryOptimizations = Permission._(15); static const ignoreBatteryOptimizations = Permission._(16);
/// Android: Notification /// Android: Notification
/// iOS: Notification /// iOS: Notification
static const notification = Permission._(16); static const notification = Permission._(17);
/// Android: Allows an application to access any geographic locations /// Android: Allows an application to access any geographic locations
/// persisted in the user's shared collection. /// persisted in the user's shared collection.
static const accessMediaLocation = Permission._(17); static const accessMediaLocation = Permission._(18);
/// When running on Android Q and above: Activity Recognition /// When running on Android Q and above: Activity Recognition
/// When running on Android < Q: Nothing /// When running on Android < Q: Nothing
/// iOS: Nothing /// iOS: Nothing
static const activityRecognition = Permission._(18); static const activityRecognition = Permission._(19);
/// The unknown only used for return type, never requested /// The unknown only used for return type, never requested
static const unknown = Permission._(19); static const unknown = Permission._(20);
/// Returns a list of all possible [PermissionGroup] values. /// Returns a list of all possible [PermissionGroup] values.
static const List<Permission> values = <Permission>[ static const List<Permission> values = <Permission>[
...@@ -109,6 +115,7 @@ class Permission { ...@@ -109,6 +115,7 @@ class Permission {
microphone, microphone,
phone, phone,
photos, photos,
photosAddOnly,
reminders, reminders,
sensors, sensors,
sms, sms,
...@@ -132,6 +139,7 @@ class Permission { ...@@ -132,6 +139,7 @@ class Permission {
'microphone', 'microphone',
'phone', 'phone',
'photos', 'photos',
'photosAddOnly',
'reminders', 'reminders',
'sensors', 'sensors',
'sms', 'sms',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment