CallPermissionUtil class

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

getDeniedHint(CallPermissionResult result) → String
用户拒绝后的建议文案(可直接用于 Dialog)
openPermissionSettings() → Future<bool>
打开当前应用的系统设置页面。 permission_handler 的 openAppSettings() 在绝大多数设备上会跳到应用详情页, 对于 MIUI / EMUI / ColorOS 等定制系统,用户需要再手动进入“权限管理”。 如果需要直达厂商权限页,可在此基础上按 Build.MANUFACTURER 做 Intent 分流。reference:4
requestCallPermissions({required CallType callType}) → Future<CallPermissionResult>
音视频通话发起前的权限检查与请求。