rtcRoom$onRoomStateChangedWithReason$withUid$state$reason method
FutureOr<void>
rtcRoom$onRoomStateChangedWithReason$withUid$state$reason(
- ByteRTCGameRoom rtcRoom,
- NSString roomId,
- NSString uid,
- ByteRTCRoomState state,
- ByteRTCRoomStateChangeReason reason,
@hidden
@detail callback
@author luomingkang
@brief Callback on game room state changes. Via this callback you get notified of room relating warnings, errors and events. For example, the user joins the room, the user is removed from the room, and so on.
@param rtcRoom ByteRTCGameRoom instance.
@param roomId Room ID.
@param uid User ID.
@param state Room state code.
- 0: Join room success.
- 1: Failed to join a room, abnormal exit, room-related warnings or errors.
- 2: Leave room.
@param reason The reason why room state changes. See ByteRTCRoomStateChangeReason{@link #ByteRTCRoomStateChangeReason}.
Implementation
FutureOr<void> rtcRoom$onRoomStateChangedWithReason$withUid$state$reason(
ByteRTCGameRoom rtcRoom,
NSString roomId,
NSString uid,
ByteRTCRoomState state,
ByteRTCRoomStateChangeReason reason) async {}