setEncryptInfo abstract method
Set the built-in encryption method.
key
: Encryption key, limited to 36 bits in length, beyond which it will be truncated.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
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,
});