PermissionUtils class
Name: PermissionUtils Created by Fitem on 2023/7/4
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getPermissionStatus(
Permission permission) → Future< PermissionStatus> - 获取权限状态 Permission 请求的权限
-
requestPermission(
Permission permission, {SuccessCallBack? success, DeniedCallBack? denied, OtherCallBack? other}) → Future< PermissionStatus> -
请求权限
Permission 请求的权限
success授权成功回调denied授权失败回调;isPermanentlyDenied是否永久拒绝other其他回调 -
requestPermissions(
List< Permission> permissions, {SuccessCallBack? success, DeniedCallBack? denied, OtherCallBack? other}) → Future<PermissionStatus> -
请求获取多个权限
Permission 请求的权限
success授权成功回调denied授权失败回调;isPermanentlyDenied是否永久拒绝other其他回调