rtcRoom$onRoomStateChangedWithReason$withUid$state$reason method

FutureOr<void> rtcRoom$onRoomStateChangedWithReason$withUid$state$reason(
  1. ByteRTCRoom rtcRoom,
  2. NSString roomId,
  3. NSString uid,
  4. ByteRTCRoomState state,
  5. ByteRTCRoomStateChangeReason reason,
)

@hidden @detail callback @author shenpengliang @brief 房间状态改变回调,加入房间、异常退出房间、发生房间相关的警告或错误时会收到此回调。 @param rtcRoom ByteRTCAudioRoom 实例 @param roomId 房间 ID。 @param uid 用户 ID。 @param state 房间状态码。
- 0: 加入房间成功。 - 1: 加入房间失败、异常退房、发生房间相关的警告或错误。 - 2: 离开房间。 @param reason 房间状态发生变化的原因。参看 ByteRTCRoomStateChangeReason{@link #ByteRTCRoomStateChangeReason}。

Implementation

FutureOr<void> rtcRoom$onRoomStateChangedWithReason$withUid$state$reason(
    ByteRTCRoom rtcRoom,
    NSString roomId,
    NSString uid,
    ByteRTCRoomState state,
    ByteRTCRoomStateChangeReason reason) async {}