PermissionService class

PermissionService 权限服务

Constructors

PermissionService()

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

getMultiPermissionStatus(List<Permission> permissions) Future<Map<Permission, PermissionStatus>>
获取多个权限状态
getPermissionStatus(Permission permission) Future<PermissionStatus>
获取指定权限状态
init(BuildContext context) Future<void>
初始化权限
openAppSetting() → void
打开应用设置页面
requestMultiPermission(List<Permission> permissions) Future<void>
请求多个权限
requestPermission(Permission permission) Future<void>
请求权限