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
30939b0a
Unverified
Commit
30939b0a
authored
Jun 28, 2021
by
Maurits van Beusekom
Committed by
GitHub
Jun 28, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #602 from ruskakimov/patch-1
Explain isPermanentlyDenied
parents
72fedfe3
2f8be41a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
permission_handler_platform_interface/lib/src/permission_status.dart
+4
-0
No files found.
permission_handler_platform_interface/lib/src/permission_status.dart
View file @
30939b0a
...
...
@@ -21,6 +21,7 @@ enum PermissionStatus {
/// Permission to the requested feature is permanently denied, the permission
/// dialog will not be shown when requesting this permission. The user may
/// still change the permission status in the settings.
/// *Only supported on Android.*
permanentlyDenied
,
}
...
...
@@ -70,6 +71,9 @@ extension PermissionStatusGetters on PermissionStatus {
/// again show a request for this permission. The user may still change the
/// permission status in the settings.
/// *Only supported on Android.*
///
/// WARNING: This can only be determined AFTER requesting this permission.
/// Therefore make a `request` call first.
bool
get
isPermanentlyDenied
=>
this
==
PermissionStatus
.
permanentlyDenied
;
bool
get
isLimited
=>
this
==
PermissionStatus
.
limited
;
...
...
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