OnError onError = (TUIError errorCode, String message) {}
Parameters | Type | Description |
errorCode | Error Codes onLiveRoomInfoChanged | |
message | String | Error Message |
OnKickedOffLine onKickedOffLine = (String message) {}
Parameters | Type | Description |
message | String | Description of removed from service |
userSig
expiration event, triggered when the user's credential expires.OnUserSigExpired onUserSigExpired = () {}
OnRoomNameChanged onRoomNameChanged = (String roomId, String roomName) {}
Parameters | Type | Description |
roomId | String | Room ID |
roomName | String | Room Name |
OnAllUserMicrophoneDisableChanged onAllUserMicrophoneDisableChanged = (String roomId, bool isDisable) {}
Parameters | Type | Description |
roomId | String | Room ID |
isDisable | bool | Whether disabled or not |
OnAllUserCameraDisableChanged onAllUserCameraDisableChanged = (String roomId, bool isDisable) {}
Parameters | Type | Description |
roomId | String | Room ID |
isDisable | bool | Whether disabled or not |
OnSendMessageForAllUserDisableChanged onSendMessageForAllUserDisableChanged = (String roomId, bool isDisable) {}
Parameters | Type | Description |
roomId | String | Room ID |
isDisable | bool | Whether disabled or not |
OnScreenShareForAllUserDisableChanged onScreenShareForAllUserDisableChanged =(String roomId, bool isDisable) {}
Parameters | Type | Description |
roomId | String | Room ID |
isDisable | bool | Whether disabled or not |
OnRoomDismissed onRoomDismissed = (String roomId, TUIRoomDismissedReason reason) {}
Parameters | Type | Description |
roomId | String | Room ID |
reason | TUIRoomDismissedReason | Dissolution reason |
OnKickedOutOfRoom onKickedOutOfRoom = (String roomId, String message) {}
Parameters | Type | Description |
roomId | String | Room ID |
message | String | Description of removed from room |
OnRoomSeatModeChanged onRoomSeatModeChanged =(String roomId, TUISeatMode seatMode) {}
Parameters | Type | Description |
roomId | String | Room ID |
seatMode | Microphone Mode |
OnRoomUserCountChanged onRoomUserCountChanged =(String roomId, int userCount) {};
Parameters | Type | Description |
roomId | String | Room ID |
userCount | int | Room Occupancy |
OnRemoteUserEnterRoom onRemoteUserEnterRoom = (String roomId, TUIUserInfo userInfo) {}
Parameters | Type | Description |
roomId | String | Room ID |
userInfo | User Information |
OnRemoteUserLeaveRoom onRemoteUserLeaveRoom = (String roomId, TUIUserInfo userInfo) {}
Parameters | Type | Description |
roomId | String | Room ID |
userInfo | User Information |
OnUserInfoChanged onUserInfoChanged = (TUIUserInfo userInfo, List<TUIUserInfoModifyFlag> modifyFlagList) {};
Parameters | Type | Description |
userInfo | TUIUserInfo | User Information |
| | |
modifyFlagList | List<TUIUserInfoModifyFlag> | TUIUserInfo change flag list |
OnUserVideoStateChanged onUserVideoStateChanged = (String userId, TUIVideoStreamType streamType, bool hasVideo, TUIChangeReason reason) {}
Parameters | Type | Description |
userId | String | User ID |
streamType | Video stream type | |
hasVideo | bool | Has video stream |
reason | Reason for video stream change |
OnUserAudioStateChanged onUserAudioStateChanged = (String userId, bool hasAudio, TUIChangeReason reason) {}
Parameters | Type | Description |
userId | String | User ID |
hasAudio | bool | Is there an audio stream |
reason | Reason for video stream change |
OnUserVoiceVolumeChanged onUserVoiceVolumeChanged = (Map<String, int> volumeMap) {}
Parameters | Type | Description |
volumeMap | Map | User volume map key: userId value: Used to carry the volume levels of all speaking users. Range: 0 - 100 |
OnSendMessageForUserDisableChanged onSendMessageForUserDisableChanged = (String roomId, String userId, bool isDisable) {}
Parameters | Type | Description |
roomId | String | Room ID |
userId | String | User ID |
isDisable | bool | Whether sending text messages is forbidden |
OnUserNetworkQualityChanged onUserNetworkQualityChanged = (Map<String, TUINetwork> networkMap) {}
Parameters | Type | Description |
networkMap | Map | User network status map key:userId value: Network condition |
OnUserScreenCaptureStopped onUserScreenCaptureStopped = (int reason) {}
Parameters | Type | Description |
reason | int | Stop reason 0: User stopped voluntarily 1: Stop due to screen window being closed 2: Indicates screen sharing display state change (e.g., interface unplugged, projection mode change, etc.) |
OnRoomMaxSeatCountChanged onRoomMaxSeatCountChanged = (String roomId, int maxSeatCount) {}
Parameters | Type | Description |
roomId | String | Room ID |
maxSeatCount | int | Maximum number of microphone positions in the room |
OnSeatListChanged onSeatListChanged = (List<TUISeatInfo> seatList, List<TUISeatInfo> seatedList, List<TUISeatInfo> leftList) {}
Parameters | Type | Description |
seatList | The latest list of users currently on the microphone, including newly joined users | |
seatedList | List of newly joined users on the microphone | |
leftList | List of users who left the microphone |
OnKickedOffSeat onKickedOffSeat = (int seatIndex, TUIUserInfo operateUser) {}
Parameters | Type | Description |
seatIndex | int | Microphone slot number |
operateUser | TUIUserInfo | Operator's information |
OnRequestReceived onRequestReceived = (TUIRequest request) {}
Parameters | Type | Description |
request | Request content |
OnRequestCancelled onRequestCancelled = (TUIRequest request, TUIUserInfo operateUser) {}
Parameters | Type | Description |
request | TUIRequest | Request Information |
operateUser | TUIUserInfo | User information of the canceled signal |
OnRequestProcessed onRequestProcessed = (TUIRequest request, TUIUserInfo operateUser) {};
Parameters | Type | Description |
request | TUIRequest | Request Information |
operateUser | TUIUserInfo | User information of the canceled signal |
Was this page helpful?