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
274247d0
Unverified
Commit
274247d0
authored
Jun 03, 2021
by
Maurits van Beusekom
Committed by
GitHub
Jun 03, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #578 from Baseflow/update_api_doc
parents
39651b08
6d02dd7d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
README.md
+0
-1
permission_handler/CHANGELOG.md
+4
-0
permission_handler/lib/permission_handler.dart
+6
-9
permission_handler/pubspec.yaml
+2
-2
No files found.
README.md
View file @
274247d0
...
...
@@ -9,4 +9,3 @@ The Flutter permission_handler plugin is build following the federated plugin ar
[
2
]:
./permission_handler/README.md
[
3
]:
./permission_handler_platform_interface
[
4
]:
./permission_handler_platform_interface/README.md
permission_handler/CHANGELOG.md
View file @
274247d0
## 8.0.1
*
Updated API documentation for the
`PermissionStatus.permanentlyDenied`
status.
## 8.0.0+2
*
Fix broken Podfile link noted at
`8.0.0`
.
...
...
permission_handler/lib/permission_handler.dart
View file @
274247d0
...
...
@@ -22,10 +22,6 @@ Future<bool> openAppSettings() => _handler.openAppSettings();
/// Actions that can be executed on a permission.
extension
PermissionActions
on
Permission
{
/// The current status of this permission.
///
/// The Android-only [PermissionStatus.permanentlyDenied] status will only be
/// calculated if the active context is an Activity. If it isn't,
/// [PermissionStatus.denied] will be returned.
Future
<
PermissionStatus
>
get
status
=>
_handler
.
checkPermissionStatus
(
this
);
/// If you should show a rationale for requesting permission.
...
...
@@ -64,14 +60,15 @@ extension PermissionCheckShortcuts on Permission {
/// *Only supported on iOS.*
Future
<
bool
>
get
isRestricted
=>
status
.
isRestricted
;
///User has authorized this application for limited photo library access.
///
User has authorized this application for limited photo library access.
/// *Only supported on iOS.(iOS14+)*
Future
<
bool
>
get
isLimited
=>
status
.
isLimited
;
/// If the user denied this permission and selected to never again show a
/// request for it. The user may still change the permission's status in the
/// device settings.
/// *Only supported on Android.*
/// Returns `true` when permissions are denied permanently.
///
/// When permissions are denied permanently, no new permission dialog will
/// be showed to the user. Consuming Apps should redirect the user to the
/// App settings to change permissions.
Future
<
bool
>
get
isPermanentlyDenied
=>
status
.
isPermanentlyDenied
;
}
...
...
permission_handler/pubspec.yaml
View file @
274247d0
name
:
permission_handler
description
:
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version
:
8.0.
0+2
version
:
8.0.
1
homepage
:
https://github.com/baseflowit/flutter-permission-handler
flutter
:
...
...
@@ -16,7 +16,7 @@ dependencies:
flutter
:
sdk
:
flutter
meta
:
^1.3.0
permission_handler_platform_interface
:
^3.5.
0
permission_handler_platform_interface
:
^3.5.
1
dev_dependencies
:
flutter_test
:
...
...
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