rtsRoom$onRoomStateChanged$withUid$state$extraInfo method

FutureOr<void> rtsRoom$onRoomStateChanged$withUid$state$extraInfo(
  1. ByteRTCRTSRoom rtsRoom,
  2. NSString roomId,
  3. NSString uid,
  4. NSInteger state,
  5. NSString extraInfo,
)

@detail callback @brief Callback on RTS 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 rtsRoom RTS room 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. @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 joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo} to successfully joining room, in ms.

Implementation

FutureOr<void> rtsRoom$onRoomStateChanged$withUid$state$extraInfo(
    ByteRTCRTSRoom rtsRoom,
    NSString roomId,
    NSString uid,
    NSInteger state,
    NSString extraInfo) async {}