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
a7f9b85d
Commit
a7f9b85d
authored
Feb 28, 2020
by
Maurits van Beusekom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document public api
parent
5a2cb9dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
example/lib/main.dart
+1
-1
lib/src/permission_enums.dart
+2
-2
No files found.
example/lib/main.dart
View file @
a7f9b85d
...
@@ -34,7 +34,7 @@ class MyApp extends StatelessWidget {
...
@@ -34,7 +34,7 @@ class MyApp extends StatelessWidget {
permission
!=
PermissionGroup
.
storage
&&
permission
!=
PermissionGroup
.
storage
&&
permission
!=
permission
!=
PermissionGroup
.
ignoreBatteryOptimizations
&&
PermissionGroup
.
ignoreBatteryOptimizations
&&
permission
!=
PermissionGroup
.
access
MediaL
ocation
;
permission
!=
PermissionGroup
.
access
_media_l
ocation
;
}
else
{
}
else
{
return
permission
!=
PermissionGroup
.
unknown
&&
return
permission
!=
PermissionGroup
.
unknown
&&
permission
!=
PermissionGroup
.
mediaLibrary
&&
permission
!=
PermissionGroup
.
mediaLibrary
&&
...
...
lib/src/permission_enums.dart
View file @
a7f9b85d
...
@@ -169,7 +169,7 @@ class PermissionGroup {
...
@@ -169,7 +169,7 @@ class PermissionGroup {
/// 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
PermissionGroup
access
MediaL
ocation
=
PermissionGroup
.
_
(
17
);
static
const
PermissionGroup
access
_media_l
ocation
=
PermissionGroup
.
_
(
17
);
/// The unknown permission only used for return type, never requested
/// The unknown permission only used for return type, never requested
static
const
PermissionGroup
unknown
=
PermissionGroup
.
_
(
18
);
static
const
PermissionGroup
unknown
=
PermissionGroup
.
_
(
18
);
...
@@ -193,7 +193,7 @@ class PermissionGroup {
...
@@ -193,7 +193,7 @@ class PermissionGroup {
storage
,
storage
,
ignoreBatteryOptimizations
,
ignoreBatteryOptimizations
,
notification
,
notification
,
access
MediaL
ocation
,
access
_media_l
ocation
,
unknown
,
unknown
,
];
];
...
...
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