Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
afe1dc2c
Commit
afe1dc2c
authored
Nov 26, 2020
by
Mathias Cochet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permission added
parent
30de83bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
permission_handler_platform_interface/lib/src/permissions.dart
+18
-10
No files found.
permission_handler_platform_interface/lib/src/permissions.dart
View file @
afe1dc2c
...
...
@@ -55,47 +55,53 @@ class Permission {
/// Android: Nothing
/// iOS: Photos
/// iOS 14+ read & write access level
static
const
photos
=
Permission
.
_
(
9
);
/// Android: Nothing
/// iOS: Photos
/// iOS 14+ read & write access level
static
const
photosAddOnly
=
Permission
.
_
(
10
);
/// Android: Nothing
/// iOS: Reminders
static
const
reminders
=
Permission
.
_
(
1
0
);
static
const
reminders
=
Permission
.
_
(
1
1
);
/// Android: Body Sensors
/// iOS: CoreMotion
static
const
sensors
=
Permission
.
_
(
1
1
);
static
const
sensors
=
Permission
.
_
(
1
2
);
/// Android: Sms
/// iOS: Nothing
static
const
sms
=
Permission
.
_
(
1
2
);
static
const
sms
=
Permission
.
_
(
1
3
);
/// Android: Microphone
/// iOS: Speech
static
const
speech
=
Permission
.
_
(
1
3
);
static
const
speech
=
Permission
.
_
(
1
4
);
/// Android: External Storage
/// iOS: Access to folders like `Documents` or `Downloads`. Implicitly
/// granted.
static
const
storage
=
Permission
.
_
(
1
4
);
static
const
storage
=
Permission
.
_
(
1
5
);
/// Android: Ignore Battery Optimizations
static
const
ignoreBatteryOptimizations
=
Permission
.
_
(
1
5
);
static
const
ignoreBatteryOptimizations
=
Permission
.
_
(
1
6
);
/// Android: Notification
/// iOS: Notification
static
const
notification
=
Permission
.
_
(
1
6
);
static
const
notification
=
Permission
.
_
(
1
7
);
/// Android: Allows an application to access any geographic locations
/// persisted in the user's shared collection.
static
const
accessMediaLocation
=
Permission
.
_
(
1
7
);
static
const
accessMediaLocation
=
Permission
.
_
(
1
8
);
/// When running on Android Q and above: Activity Recognition
/// When running on Android < Q: Nothing
/// iOS: Nothing
static
const
activityRecognition
=
Permission
.
_
(
1
8
);
static
const
activityRecognition
=
Permission
.
_
(
1
9
);
/// 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.
static
const
List
<
Permission
>
values
=
<
Permission
>[
...
...
@@ -109,6 +115,7 @@ class Permission {
microphone
,
phone
,
photos
,
photosAddOnly
,
reminders
,
sensors
,
sms
,
...
...
@@ -132,6 +139,7 @@ class Permission {
'microphone'
,
'phone'
,
'photos'
,
'photosAddOnly'
,
'reminders'
,
'sensors'
,
'sms'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment