onError property

void Function(ErrorCodeType err, String msg)? onError
final

Callback when an error occurs.

This callback indicates that a network or media-related error occurred during SDK runtime. In most cases, errors reported by the SDK mean it cannot recover automatically and requires app intervention or user notification.

  • err Error code. See ErrorCodeType.
  • msg Error description.

Implementation

final void Function(ErrorCodeType err, String msg)? onError;