enableEncryption abstract method
Enables/Disables the built-in encryption. In scenarios requiring high security, Agora recommends calling this method to enable the built-in encryption before joining a channel. All users in the same channel must use the same encryption mode and encryption key. After the user leaves the channel, the SDK automatically disables the built-in encryption. To enable the built-in encryption, call this method before the user joins the channel again. If you enable the built-in encryption, you cannot use the media push function.
Param enabled
Whether to enable built-in encryption: true: Enable the built-in encryption.
false: Disable the built-in encryption.
Param config
Built-in encryption configurations. See EncryptionConfig for details.
Implementation
Future<void> enableEncryption(bool enabled, EncryptionConfig config);