OnRoomStateChangedType typedef
roomId
: ID of the room where the status change occurred.
uid
: ID of the user whose status has changed.
state
: Room status code:
- 0: Success
- !0: Failure, see ErrorCode and WarningCode for details.
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);