onEncryptionError property

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

Reports the built-in encryption errors.

When encryption is enabled by calling enableEncryption, the SDK triggers this callback if an error occurs in encryption or decryption on the sender or the receiver side.

  • connection The connection information. See RtcConnection.
  • errorType Details about the error type. See EncryptionErrorType.

Implementation

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