PermissionUtils class

Name: PermissionUtils Created by Fitem on 2023/7/4

Constructors

PermissionUtils()

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 其他回调