rtcRoom$onRoomStateChangedWithReason$withUid$state$reason method
FutureOr<void>
rtcRoom$onRoomStateChangedWithReason$withUid$state$reason(
- ByteRTCRoom rtcRoom,
- NSString roomId,
- NSString uid,
- ByteRTCRoomState state,
- ByteRTCRoomStateChangeReason reason,
@hidden
@detail callback
@author shenpengliang
@brief Callback on 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 ByteRTCAudioRoom 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(
ByteRTCRoom rtcRoom,
NSString roomId,
NSString uid,
ByteRTCRoomState state,
ByteRTCRoomStateChangeReason reason) async {}