OnError onError = (TUIError errorCode, String message) {}
Parameter | Type | Description |
errorCode | Error Code | |
message | String | Error Message |
OnKickedOffLine onKickedOffLine = (String message) {}
Parameter | Type | Description |
message | String | Kicked out description |
OnUserSigExpired onUserSigExpired = () {}
OnRoomNameChanged onRoomNameChanged = (String roomId, String roomName) {}
Parameter | Type | Description |
roomId | String | Room ID |
roomName | String | Room Name |
OnAllUserMicrophoneDisableChanged onAllUserMicrophoneDisableChanged = (String roomId, bool isDisable) {}
Parameter | Type | Description |
roomId | String | Room ID |
isDisable | bool | Whether it is disabled |
OnAllUserCameraDisableChanged onAllUserCameraDisableChanged = (String roomId, bool isDisable) {}
Parameter | Type | Description |
roomId | String | Room ID |
isDisable | bool | Whether it is disabled |
OnSendMessageForAllUserDisableChanged onSendMessageForAllUserDisableChanged = (String roomId, bool isDisable) {}
Parameter | Type | Description |
roomId | String | Room ID |
isDisable | bool | Whether it is disabled |
OnRoomDismissed onRoomDismissed = (String roomId) {}
Parameter | Type | Description |
roomId | String | Room ID |
OnKickedOutOfRoom onKickedOutOfRoom = (String roomId, String message) {}
Parameter | Type | Description |
roomId | String | Room ID |
message | String | Description of being kicked out |
OnRoomSpeechModeChanged onRoomSpeechModeChanged = (String roomId, TUISpeechMode speechMode) {}
Parameter | Type | Description |
roomId | String | Room ID |
speechMode | Mic control mode |
OnRemoteUserEnterRoom onRemoteUserEnterRoom = (String roomId, TUIUserInfo userInfo) {}
Parameter | Type | Description |
roomId | String | Room ID |
userInfo | User information |
OnRemoteUserLeaveRoom onRemoteUserLeaveRoom = (String roomId, TUIUserInfo userInfo) {}
Parameter | Type | Description |
roomId | String | Room ID |
userInfo | User information |
OnUserRoleChanged onUserRoleChanged = (String userId, TUIRole role) {}
Parameter | Type | Description |
userId | String | User ID |
role | User Role |
OnUserVideoStateChanged onUserVideoStateChanged = (String userId, TUIVideoStreamType streamType, bool hasVideo, TUIChangeReason reason) {}
Parameter | Type | Description |
userId | String | User ID |
streamType | Streams type | |
hasVideo | bool | Whether there are streams |
reason | Reason for streams change |
OnUserAudioStateChanged onUserAudioStateChanged = (String userId, bool hasAudio, TUIChangeReason reason) {}
Parameter | Type | Description |
userId | String | User ID |
hasAudio | bool | Whether there are Audio streams |
reason | Reason for Audio streams change |
OnUserVoiceVolumeChanged onUserVoiceVolumeChanged = (Map<String, int> volumeMap) {}
Parameter | Type | Description |
volumeMap | Map | User Volume Map key: userId value: Used for carrying the volume size of all speaking users, Value range 0 - 100 |
OnSendMessageForUserDisableChanged onSendMessageForUserDisableChanged = (String roomId, String userId, bool isDisable) {}
Parameter | Type | Description |
roomId | String | Room ID |
userId | String | User ID |
isDisable | bool | Whether it is prohibited to send text messages. |
OnUserNetworkQualityChanged onUserNetworkQualityChanged = (Map<String, TUINetwork> networkMap) {}
Parameter | Type | Description |
networkMap | Map | User Network Status Map key: userId value: Network Condition |
OnUserScreenCaptureStopped onUserScreenCaptureStopped = (int reason) {}
Parameter | Type | Description |
reason | int | Stop reason: 0: User actively stops 1: Screen window closing causes the stop 2: Screen Sharing display screen status change (such as interface being unplugged, Projection mode change, etc.) |
OnRoomMaxSeatCountChanged onRoomMaxSeatCountChanged = (String roomId, int maxSeatCount) {}
Parameter | Type | Description |
roomId | String | Room ID |
maxSeatCount | int | Maximum number of mic slots in the room |
OnSeatListChanged onSeatListChanged = (List<TUISeatInfo> seatList, List<TUISeatInfo> seatedList, List<TUISeatInfo> leftList) {}
Parameter | Type | Description |
seatList | The latest user list on the mic, including newly on mic users | |
seatedList | Newly on mic user list | |
leftList | Newly off mic user list |
OnKickedOffSeat onKickedOffSeat = (String userId) {}
Parameter | Type | Description |
userId | String | Operate Kick-out of the (Host/Administrator) User ID |
OnRequestReceived onRequestReceived = (TUIRequest request) {}
Parameter | Type | Description |
request | Request content |
OnRequestCancelled onRequestCancelled = (String requestId, String userId) {}
Parameter | Type | Description |
requestId | String | Request ID |
userId | String | Cancel signaling user ID |
OnReceiveTextMessage onReceiveTextMessage = (String roomId, TUIMessage message) {}
Parameter | Type | Description |
roomId | String | Room ID |
message | Message content |
OnReceiveCustomMessage onReceiveCustomMessage = (String roomId, TUIMessage message) {}
Parameter | Type | Description |
roomId | String | Room ID |
message | Message content |
Was this page helpful?