rtcRoom$onAVSyncEvent$userId$eventCode method
FutureOr<void>
rtcRoom$onAVSyncEvent$userId$eventCode(
- dynamic rtcRoom,
- dynamic roomId,
- dynamic userId,
- dynamic eventCode,
override
@detail callback @valid since 3.60. @brief Stream publisher will receive this callback when the A/V synchronization error occurs after setMultiDeviceAVSync:{@link #ByteRTCRoom#setMultiDeviceAVSync} is called. @param rtcRoom ByteRTCRoom object @param roomId Room ID. @param userId User ID. @param eventCode A/V synchronization error, see ByteRTCAVSyncEvent{@link #ByteRTCAVSyncEvent}.
Implementation
FutureOr<void> rtcRoom$onAVSyncEvent$userId$eventCode(dynamic rtcRoom,
dynamic roomId, dynamic userId, dynamic eventCode) async {
if ($instance == null || $instance is! IRTCRoomEventHandler) {
return;
}
return ($instance as IRTCRoomEventHandler).onAVSyncEvent?.call(
roomId.toString(),
userId.toString(),
t_AVSyncEvent.ios_to_code($p_i.ByteRTCAVSyncEvent.values
.firstWhere((t) => t.$value == eventCode || t.name == eventCode)));
}