AgoraAudioSessionOperationRestriction Constants Reference
Declared in | AgoraEnumerates.h |
---|
AgoraAudioSessionOperationRestriction
SDK 对 Audio Session 的操作权限。
Definition
typedef NS_OPTIONS(NSUInteger, AgoraAudioSessionOperationRestriction ) {
AgoraAudioSessionOperationRestrictionNone = 0,
AgoraAudioSessionOperationRestrictionSetCategory = 1,
AgoraAudioSessionOperationRestrictionConfigureSession = 1 < < 1,
AgoraAudioSessionOperationRestrictionDeactivateSession = 1 < < 2,
AgoraAudioSessionOperationRestrictionAll = 1 < < 7,
};
Constants
AgoraAudioSessionOperationRestrictionNone
-
没有限制,SDK 可以对 Audio Session 进行更改。
Declared In
AgoraEnumerates.h
. AgoraAudioSessionOperationRestrictionSetCategory
-
SDK 不能更改 Audio Session 的 category。
Declared In
AgoraEnumerates.h
. AgoraAudioSessionOperationRestrictionConfigureSession
-
SDK 不能更改 Audio Session 的 category、mode 或 categoryOptions。
Declared In
AgoraEnumerates.h
. AgoraAudioSessionOperationRestrictionDeactivateSession
-
离开频道时,SDK 会保持 Audio Session 处于活动状态,例如在后台播放音频。
Declared In
AgoraEnumerates.h
. AgoraAudioSessionOperationRestrictionAll
-
完全限制 SDK 对 Audio Session 的操作权限,SDK 不能再对 Audio Session 进行任何更改。
Declared In
AgoraEnumerates.h
.
Declared In
AgoraEnumerates.h