CallPermissionResult class
权限请求结果 音视频通话权限请求的结果封装。
由 CallPermissionUtil.requestCallPermissions 返回,用于让调用方 在“启动 RTC 引擎之前”决定是放行、提示重试,还是引导用户去系统设置。
设计原则:本对象只承载“申请层面的信号”,不代表底层采集一定成功。
国产 ROM 存在状态回报不准确的可能,因此 granted == true 时应放行
启动 RTC,但最终是否可用仍需由 RTC 引擎的采集回调来裁定。
Constructors
- CallPermissionResult({required bool granted, required bool microphonePermanentlyDenied, required bool cameraPermanentlyDenied, required PermissionStatus microphoneStatus, PermissionStatus? cameraStatus})
-
const
Properties
- cameraPermanentlyDenied → bool
-
摄像头权限是否已被系统判定为永久拒绝。
final
- cameraStatus → PermissionStatus?
-
摄像头权限在本次 request 之后的最终状态。
final
- granted → bool
-
本次通话所需权限是否全部已授予。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPermanentlyDenied → bool
-
麦克风或摄像头中任意一个处于永久拒绝状态。
no setter
- microphonePermanentlyDenied → bool
-
麦克风权限是否已被系统判定为永久拒绝。
final
- microphoneStatus → PermissionStatus
-
麦克风权限在本次 request 之后的最终状态。
final
- 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