rtcRoom$onRoomWarning method
@hidden
@deprecated since 3.41 and will be deleted in 3.51, use rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} and rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo} instead.
@detail callback
@author shenpengliang
@brief 发生警告回调。
SDK 运行时出现了警告。SDK 通常会自动恢复,警告信息可以忽略。
@param rtcRoom ByteRTCRoom 对象。
@param warningCode 警告码,详见枚举类型 ByteRTCWarningCode{@link #ByteRTCWarningCode} 。
Implementation
FutureOr<void> rtcRoom$onRoomWarning(
dynamic rtcRoom, dynamic warningCode) async {
if ($instance == null || $instance is! IRTCRoomEventHandler) {
return;
}
return ($instance as IRTCRoomEventHandler).onRoomWarning?.call(
packObject(rtcRoom, () => RTCRoom()),
t_WarningCode.ios_to_code($p_i.ByteRTCWarningCode.values.firstWhere(
(t) => t.$value == warningCode || t.name == warningCode)));
}