PermissionsHelper class

Constructors

PermissionsHelper.new()

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 Properties

permissionTipDialog Map
检测是否有权限:granted,或。deniedrestrictedpermanentlyDenied
getter/setter pair

Static Methods

checkLocationAlways(BuildContext context, {VoidCallback? onSuccess, bool needLocationAlways = true, VoidCallback? onFailed, VoidCallback? goSetting}) → dynamic
关于这个在文档有描述 The locationAlways permission can not be requested directly, the user has to request the locationWhenInUse permission first. Accepting this permission by clicking on the 'Allow While Using App' gives the user the possibility to request the locationAlways permission. This will then bring up another permission popup asking you to Keep Only While Using or to Change To Always Allow
handlePermissions(BuildContext context, {required List permissionList, VoidCallback? onSuccess, VoidCallback? onFailed, bool showGoSetting = true}) → dynamic