GNSMessageManagerParams 클래스
NSObject를 상속합니다.
- (BOOL) showBluetoothPowerAlert |
|
readwritenonatomicassign |
Bluetooth가 꺼져 있을 때 시스템 알림을 표시합니다. 기본값은 '예'입니다.
- (GNSErrorStateHandler) microphonePermissionErrorHandler |
|
readwritenonatomiccopy |
오류 상태가 변경되면 기본 스레드에서 다음 오류 핸들러가 호출됩니다.
값이 YES이면 오류가 있음을 의미합니다. 마이크 권한이 거부되었습니다.
- (GNSErrorStateHandler) bluetoothPermissionErrorHandler |
|
readwritenonatomiccopy |
- (GNSErrorStateHandler) bluetoothPowerErrorHandler |
|
readwritenonatomiccopy |
- (BOOL) useBestAudioSessionCategory |
|
readwritenonatomicassign |
이 매개변수는 앱이 검색을 위해 오디오 매체를 사용하는 경우에만 관련이 있습니다.
YES로 설정하면 Nearby는 AVAudioSession 카테고리와 옵션을 Nearby에 가장 적합한 값(AVAudioSessionCategoryPlayAndRecord, AVAudioSessionCategoryOptionDefaultToSpeaker)으로 설정합니다. '아니요'로 설정하면 현재 카테고리와 옵션이 그대로 유지되어 Nearby에서 사용됩니다. 이로 인해 Nearby에서 오디오를 브로드캐스트하거나 녹음하지 못할 수 있습니다. 예를 들어 앱에서 AVAudioSessionCategoryAmbient를 사용하는 경우 Nearby는 근처 기기의 오디오를 듣지 못할 수 있습니다. 앱에서 AVAudioSessionCategoryRecord를 사용하는 경우 Nearby는 오디오를 근처 기기로 브로드캐스트할 수 없습니다. 기본값은 '예'입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-02(UTC)
[null,null,["최종 업데이트: 2023-12-02(UTC)"],[[["`GNSMessageManagerParams` provides additional parameters for managing Nearby Messages."],["It includes properties to control system alerts for Bluetooth, handle errors related to microphone/Bluetooth permissions and power, and optimize audio sessions for discovery."],["By default, the system alert for Bluetooth power is shown and Nearby attempts to use the best audio session configuration for discovery."],["Error handlers can be set to respond to microphone and Bluetooth permission or power issues."]]],[]]