onEncryptionError property

void Function(RtcConnection connection, EncryptionErrorType errorType)? onEncryptionError
final

Callback when an error occurs with built-in encryption.

After calling enableEncryption to enable encryption, if an encryption or decryption error occurs on the sender or receiver side, the SDK triggers this callback.

  • connection Connection information. See RtcConnection.
  • errorType Error type. See EncryptionErrorType.

Implementation

final void Function(RtcConnection connection, EncryptionErrorType errorType)?
    onEncryptionError;