OnRoomStateChangedType typedef

OnRoomStateChangedType = void Function(String roomId, String uid, int state, String extraInfo)

roomId: ID of the room where the status change occurred.

uid: ID of the user whose status has changed.

state: Room status code:

extraInfo: Extra information.

  • joinType: 0 represents joining in the room for the first time, 1 represents a reconnection into the room.
  • elapsed: The time interval (in ms) between the local user calling RTCRoom.joinRoom and successfully entering the room.

Implementation

typedef OnRoomStateChangedType = void Function(
    String roomId, String uid, int state, String extraInfo);