rtcRoom$onRoomStateChanged$withUid$state$extraInfo method
- ByteRTCGameRoom rtcRoom,
- NSString roomId,
- NSString uid,
- NSInteger state,
- NSString extraInfo,
@detail callback
@region Multi-room
@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.
- !0: Failed to join a room, abnormal exit, room-related warnings or errors. See ByteRTCErrorCode{@link #ByteRTCErrorCode} and ByteRTCWarningCode{@link #ByteRTCWarningCode} for specific indications.
@param extraInfo Extra information.
join_type indicates the type of room the user joins. 0 means the user joins the room for the first time, and 1 means the user rejoins the room.
elapsed indicates the time interval from calling joinRoom:userInfo:{@link #ByteRTCGameRoom#joinRoom:userInfo} to successfully joining room, in ms.
Implementation
FutureOr<void> rtcRoom$onRoomStateChanged$withUid$state$extraInfo(
ByteRTCGameRoom rtcRoom,
NSString roomId,
NSString uid,
NSInteger state,
NSString extraInfo) async {}