rtcEngine$onError method
@detail callback
@author panjian.fishing
@brief Error callback occurred. This callback is triggered when a network or media-related error occurs during the
SDK runtime and cannot be automatically recovered and you may need to intervene.
@param engine ByteRTCEngine object.
@param errorCode BigInt. See ByteRTCErrorCode{@link #ByteRTCErrorCode}.
Implementation
FutureOr<void> rtcEngine$onError(dynamic engine, dynamic errorCode) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onError?.call(
t_ErrorCode.ios_to_code($p_i.ByteRTCErrorCode.values
.firstWhere((t) => t.$value == errorCode || t.name == errorCode)));
}