AgoraAudioSessionOperationRestriction 常量
Declared in | AgoraEnumerates.h |
---|
AgoraAudioSessionOperationRestriction
音频会话控制权限
Agora 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