setEncryptInfo abstract method

Future<int?> setEncryptInfo({
  1. required EncryptType aesType,
  2. required String key,
})

Set the built-in encryption method.

key: Encryption key, limited to 36 bits in length, beyond which it will be truncated.

Return value:

Notes: This API can be called repeatedly before or after the user enters the room with the last called parameter as the effective parameter.

Implementation

Future<int?> setEncryptInfo({
  required EncryptType aesType,
  required String key,
});