AgoraEncryptionConfig Class Reference
Inherits from | NSObject |
---|---|
Declared in | AgoraObjects.h |
encryptionMode
Encryption mode. The default encryption mode is AgoraEncryptionModeAES128XTS
. See AgoraEncryptionMode.
@property (assign, nonatomic) AgoraEncryptionMode encryptionMode
Declared In
AgoraObjects.h
encryptionKey
Encryption key in string type.
@property (copy, nonatomic) NSString *encryptionKey
Discussion
Note
If you do not set an encryption key or set it as nil
, you cannot use the built-in encryption, and the SDK returns -2
(AgoraErrorCodeInvalidArgument
).
Declared In
AgoraObjects.h