Starter Deal! First 3 month from only  $9.9 /month!
Starter Deal! First 3 month from only  $9.9 /month!
Grab It Now 
Conference
Overview
  • Web
    • Run Sample Demo
    • Integration
    • UI Customization
    • In-Conference Chat
    • Cloud Recording
    • AI Noise Cancellation
    • Robot Streaming
    • More Features
      • Floating Window
    • API Documentation
      • RoomKit API
      • RoomEngine API
        • API Overview
        • TUIRoomEngine
        • TUIRoomEvents
        • TUIRoomEngine Defines
    • FAQs
  • iOS
    • Run Sample Demo
    • Integration
    • UI Customization
    • Conference Control
    • In-Conference Chat
    • Cloud Recording
    • AI Noise Cancellation
    • Robot Streaming
    • More Features
      • Floating Window
    • API Documentation
      • RoomKit API
      • RoomEngine API
        • API Overview
        • TUIRoomEngine
        • TUIRoomObserver
        • Type Definition
    • FAQs
  • Android
    • Run Sample Demo
    • Integration
    • UI Customization
    • Conference Control
    • In-Conference Chat
    • Cloud Recording
    • AI Noise Cancellation
    • Robot Streaming
    • More Features
      • Floating Window
    • API Documentation
      • RoomKit API
      • RoomEngine API
        • API Overview
        • TUIRoomEngine
        • TUIRoomObserver
        • Type Definition
    • FAQs
  • Electron
    • Run Sample Demo
    • Integration
    • UI Customization
    • In-Conference Chat
    • Cloud Recording
    • AI Noise Cancellation
    • Robot Streaming
    • More Features
      • Floating Window
    • API Documentation
      • RoomKit API
      • RoomEngine API
        • API Overview
        • TUIRoomEvent
        • TUIRoomEngine
        • TUIRoomEngine Defines
    • FAQs
  • Flutter
    • Run Sample Demo
    • Integration
    • UI Customization
    • Conference Control
    • Cloud Recording
    • AI Noise Cancellation
    • Robot Streaming
    • More Features
      • Floating Window
    • API Documentation
      • RoomKit API
      • RoomEngine API
        • API Overview
        • TUIRoomEngine
        • TUIRoomObserver
        • Type Definition
    • FAQs
  • Overview
    • Overview
  • Activate the Service
  • Pricing
    • TRTC Conference Monthly Packages
    • Pay-As-You-Go
    • Free Minutes
  • Error Code
Conference

TUIRoomObserver

TUIRoomEngine Event Callback

onError

Error Event Callback
void onError(TUICommonDefine.Error errorCode, String message)
Parameter
Type
Description
errorCode
TUICommonDefine.Error
Error Code
message
String
Error Message

onKickedOffLine

Other terminals login and get kicked off event.
void onKickedOffLine(String message)
Parameter
Type
Description
message
String
Kicked out description

onUserSigExpired

User credential timeout event.
void onUserSigExpired()

onRoomNameChanged

Room name change event.
void onRoomNameChanged(String roomId, String roomName)
Parameter
Type
Description
roomId
String
Room ID
roomName
String
Room Name

onAllUserMicrophoneDisableChanged

Inside the room, all users' mic is disabled event.
void onAllUserMicrophoneDisableChanged(String roomId, boolean isDisable)
Parameter
Type
Description
roomId
String
Room ID
isDisable
boolean
Whether it is disabled

onAllUserCameraDisableChanged

All users' Camera in the Room are disabled event.
void onAllUserCameraDisableChanged(String roomId, boolean isDisable)
Parameter
Type
Description
roomId
String
Room ID
isDisable
boolean
Whether it is disabled

onSendMessageForAllUserDisableChanged

Inside the room, all users' text message sending is disabled event.
void onSendMessageForAllUserDisableChanged(String roomId, boolean isDisable)
Parameter
Type
Description
roomId
String
Room ID
isDisable
boolean
Whether it is disabled

onRoomDismissed

Room dissolution event.
void onRoomDismissed(String roomId)
Parameter
Type
Description
roomId
String
Room ID

onKickedOutOfRoom

Kick out of the room event
void onKickedOutOfRoom(String roomId, String message)
Parameter
Type
Description
roomId
String
Room ID
message
String
Description of being kicked out

onRoomSpeechModeChanged

Mic control mode changes in the room.
void onRoomSpeechModeChanged(String roomId, TUIRoomDefine.SpeechMode speechMode)
Parameter
Type
Description
roomId
String
Room ID
speechMode
Mic control mode

onRemoteUserEnterRoom

Remote user enters the room event.
void onRemoteUserEnterRoom(String roomId, TUIRoomDefine.UserInfo userInfo)
Parameter
Type
Description
roomId
String
Room ID
userInfo
User information

onRemoteUserLeaveRoom

Remote user leaves the room event.
void onRemoteUserLeaveRoom(String roomId, TUIRoomDefine.UserInfo userInfo)
Parameter
Type
Description
roomId
String
Room ID
userInfo
User information

onUserRoleChanged

User role changes event.
void onUserRoleChanged(String userId, TUIRoomDefine.Role role)
Parameter
Type
Description
userId
String
User ID
role
User Role

onUserVideoStateChanged

User Video status changes event.
void onUserVideoStateChanged(String userId,
TUIRoomDefine.VideoStreamType streamType,
boolean hasVideo,
TUIRoomDefine.ChangeReason reason)
Parameter
Type
Description
userId
String
User ID
streamType
Streams type
hasVideo
boolean
Whether there are streams
reason
Reason for streams change

onUserAudioStateChanged

User Audio status changes event.
void onUserAudioStateChanged(String userId, boolean hasAudio, TUIRoomDefine.ChangeReason reason)
Parameter
Type
Description
userId
String
User ID
hasAudio
boolean
Whether there are Audio streams
reason
Reason for Audio streams change

onUserVoiceVolumeChanged

User volume change event.
void onUserVoiceVolumeChanged(Map<String, Integer> 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

User text message sending ability changes event.
void onSendMessageForUserDisableChanged(String roomId, String userId, boolean isDisable)
Parameter
Type
Description
roomId
String
Room ID
userId
String
User ID
isDisable
boolean
Whether it is prohibited to send text messages.

onUserNetworkQualityChanged

User network status change event.
void onUserNetworkQualityChanged(Map<String, TUICommonDefine.NetworkInfo> networkMap)
Parameter
Type
Description
networkMap
Map
User Network Status Map
key: userId
value: Network Condition

onUserScreenCaptureStopped

Screen Sharing stopped Callback event.
void 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

Maximum number of mic slots changes event in the room (only effective in meeting type rooms).
void onRoomMaxSeatCountChanged(String roomId, int maxSeatCount)
Parameter
Type
Description
roomId
String
Room ID
maxSeatCount
int
Maximum number of mic slots in the room

onSeatListChanged

Mic slot list changes event.
void onSeatListChanged(List<TUIRoomDefine.SeatInfo> seatList,
List<TUIRoomDefine.SeatInfo> seatedList,
List<TUIRoomDefine.SeatInfo> 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

Received the event of user being kicked off mic.
void onKickedOffSeat(String userId)
Parameter
Type
Description
userId
String
Operate Kick-out of the (Host/Administrator) User ID

onRequestReceived

Received request message event.
void onRequestReceived(TUIRoomDefine.Request request)
Parameter
Type
Description
request
Request content

onRequestCancelled

Received request cancellation event.
void onRequestCancelled(String requestId, String userId)
Parameter
Type
Description
requestId
String
Request ID
userId
String
Cancel signaling user ID

onReceiveTextMessage

Received ordinary text message event.
void onReceiveTextMessage(String roomId, TUICommonDefine.Message message)
Parameter
Type
Description
roomId
String
Room ID
message
Message content

onReceiveCustomMessage

Received custom message event.
void onReceiveCustomMessage(String roomId, TUICommonDefine.Message message)
Parameter
Type
Description
roomId
String
Room ID
message
Message content