GNSMessageManagerParams 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此类继承 NSObject。
- (BOOL) showBluetoothPowerAlert |
|
readwritenonatomicassign |
当蓝牙处于关闭状态时显示系统提醒。默认值为“是”。
- (GNSErrorStateHandler) microphonePermissionErrorHandler |
|
readwritenonatomiccopy |
当错误状态发生更改时,系统会(在主线程上)调用以下错误处理程序。
值 YES 表示出现错误。麦克风权限遭拒。
- (GNSErrorStateHandler) bluetoothPermissionErrorHandler |
|
readwritenonatomiccopy |
- (GNSErrorStateHandler) bluetoothPowerErrorHandler |
|
readwritenonatomiccopy |
- (BOOL) useBestAudioSessionCategory |
|
readwritenonatomicassign |
仅当您的应用使用音频媒介被发现时,此参数才相关。
如果设置为 YES,“附近”功能会将 AVAudioSession 类别和选项分别设为最适合“附近”功能的值:AVAudioSessionCategoryPlayAndRecord 和 AVAudioSessionCategoryOptionDefaultToSpeaker。如果您将其设为“否”,“附近”功能将保留并使用当前的类别和选项。这可能会导致“附近”功能无法广播或录制音频。例如,如果您的应用使用 AVAudioSessionCategoryAmbient,“附近”功能可能无法监听附近设备的音频。如果您的应用使用 AVAudioSessionCategoryRecord,“附近”功能将无法向附近的设备广播音频。默认值为 YES。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-20。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]