setEncryptionMode method Null safety

Future<void> setEncryptionMode(
  1. EncryptionMode encryptionMode
)

Sets the built-in encryption mode.

Deprecated

This method is deprecated since v3.1.2. Use RtcEngine.enableEncryption instead.

The Agora SDK supports built-in encryption, which is set to aes-128-xts mode by default. Call this method to set the encryption mode to use other encryption modes. All users in the same channel must use the same encryption mode and password.

Refer to the information related to the AES encryption algorithm on the differences between the encryption modes.

Note

Parameter encryptionMode Sets the encryption mode. See EncryptionMode.

Implementation

@override
@deprecated
Future<void> setEncryptionMode(EncryptionMode encryptionMode) {
  return _invokeMethod('setEncryptionMode', {
    'encryptionMode': EncryptionModeConverter(encryptionMode).value(),
  });
}