tencent cloud

Tencent Real-Time Communication

Release Notes and Announcements
Release Notes
Recent Product Announcement
TRTC Live (TUILiveKit) Product Launch Announcement
TRTC Conference Official Editions Launched
The commercial version of Conference is coming soon
Terms and Conditions Applicable to $9.9 Starter Package
Rules for the "First Subscription $100 Discount" Promotion
Announcement on the Start of Beta Testing for Multi-person Audio and Video Conference
TRTC Call Official Editions Launched
License Required for Video Playback in New Version of LiteAV SDK
TRTC to Offer Monthly Packages
Product Introduction
Overview
Concepts
Features
Strengths
Use Cases
Performance Statistics
Tencent RTC Quickplay: Experience Ultimate Real-Time Audio and Video Interaction!
Purchase Guide
Billing Overview
Free Minutes
Monthly subscription
Pay-as-you-go
TRTC Overdue and Suspension Policy
FAQs
Refund Instructions
User Tutorial
Free Demo
Call
Overview
Activate the Service
Run Demo
Integration
Offline Call Push
Conversational Chat
On-Cloud Recording
AI Noise Reduction
UI Customization
Calls integration to Chat
Additional Features
No UI Integration
Server APIs
Client APIs
Solution
ErrorCode
Release Notes
FAQs
Conference
Overview(TUIRoomKit)
Activate the Service (TUIRoomKit)
Run Demo(TUIRoomKit)
Integration(TUIRoomKit)
Screen Sharing (TUIRoomKit)
Schedule a meeting (TUIRoomKit)
In-meeting Call (TUIRoomKit)
UI Customization(TUIRoomKit)
Virtual Background (TUIRoomKit)
Conference Control (TUIRoomKit)
Cloud Recording (TUIRoomKit)
AI Noise Reduction (TUIRoomKit)
In-Conference Chat (TUIRoomKit)
Robot Streaming (TUIRoomKit)
Enhanced Features (TUIRoomKit)
Client APIs (TUIRoomKit)
Server APIs (TUIRoomKit)
FAQs (TUIRoomKit)
Error Code (TUIRoomKit)
SDK Update Log (TUIRoomKit)
Live
Billing of Video Live Component
Overview
Activating the Service (TUILiveKit)
Run Demo
No UI Integration
UI Customization
Live Broadcast Monitoring
Video Live Streaming
Voice Chat Room
Advanced Features
Client APIs
Server APIs
Error Codes
Release Notes
FAQs
RTC Engine
Activate Service
SDK Download
API Examples
Usage Guidelines
API Reference Manual
Advanced Features
AI Integration
Overview
Configure MCP Server
Install Skills
Integration Guide
FAQ
RTC RESTFUL API
History
Introduction
API Category
Room Management APIs
Stream mixing and relay APIs
On-cloud recording APIs
Data Monitoring APIs
Pull stream Relay Related interface
Web Record APIs
AI Service APIs
Cloud Slicing APIs
Cloud Moderation APIs
Making API Requests
Call Quality Monitoring APIs
Usage Statistics APIs
Data Types
Appendix
Error Codes
Console Guide
Application Management
Package Management
Usage Statistics
Monitoring Dashboard
Development Assistance
Solution
Real-Time Chorus
FAQs
Migration Guide
Billing
Features
UserSig
Firewall Restrictions
How to Downsize Installation Package
Android and iOS
Web
Flutter
Electron
TRTCCalling for Web
Audio and Video Quality
Others
Legacy Documentation
RTC RoomEngine SDK(Old)
Integrating TUIRoom (Web)
Integrating TUIRoom (Android)
Integrating TUIRoom (iOS)
Integrating TUIRoom (Flutter)
Integrating TUIRoom (Electron)
TUIRoom APIs
On-Cloud Recording and Playback (Old)
RTC Analytics Monthly Packages (Previous Version)
Protocols and Policies
Compliance
Security White Paper
Notes on Information Security
Service Level Agreement
Apple Privacy Policy: PrivacyInfo.xcprivacy
TRTC Policy
Privacy Policy
Data Processing And Security Agreement
Glossary

TUILiveConnectionManager

PDF
Focus Mode
Font Size
Last updated: 2025-07-17 17:58:05
Copyright (c) 2024 Tencent. All rights reserved.
Module: TUILiveConnectionManager @ TUIKitEngine
Function: Live-Connection APIS, the functions on this webpage only support to LIVE room type.

TUILiveConnectionManager

TUILiveConnectionManager

FuncList
DESC
Callback for connected users changed.
Callback for received the connection invitation
Callback for canceled the connection invitation
Callback for accepted the connection invitation
Callback for rejected the connection invitation
Callback for timeout the connection invitation
Add event callback
Remove event callback
Request connection invitation
Cancel request about connection invitation
Accept the connection invitation
Reject the connection invitation
Exit the connection.

StructType

FuncList
DESC
Connection User Info

EnumType

EnumType
DESC
Connection Request Status

onConnectionUserListChanged

onConnectionUserListChanged
void onConnectionUserListChanged
(List<ConnectionUser> connectedList

List<ConnectionUser> joinedList

List<ConnectionUser> leavedList)

Callback for connected users changed.

Param
DESC
connectedList
List of connected users.
joinedList
List of joined connected users.
leavedList
List of leaved connected users.

onConnectionRequestReceived

onConnectionRequestReceived
void onConnectionRequestReceived
(ConnectionUser inviter

List<ConnectionUser> inviteeList

String extensionInfo)

Callback for received the connection invitation

Param
DESC
extensionInfo
Extension info。
inviteeList
The list of ConnectionUser about the invitee in current connection.
inviter
The ConnectionUser about the inviter.

onConnectionRequestCancelled

onConnectionRequestCancelled
void onConnectionRequestCancelled
(ConnectionUser inviter)

Callback for canceled the connection invitation

Param
DESC
inviter
The ConnectionUser about the inviter.

onConnectionRequestAccept

onConnectionRequestAccept
void onConnectionRequestAccept
(ConnectionUser invitee)

Callback for accepted the connection invitation

Param
DESC
invitee
The ConnectionUser about the invitee.

onConnectionRequestReject

onConnectionRequestReject
void onConnectionRequestReject
(ConnectionUser invitee)

Callback for rejected the connection invitation

Param
DESC
invitee
The ConnectionUser about the invitee.

onConnectionRequestTimeout

onConnectionRequestTimeout
void onConnectionRequestTimeout
(ConnectionUser inviter

ConnectionUser invitee)

Callback for timeout the connection invitation

Param
DESC
invitee
The ConnectionUser about the invitee.
inviter
The ConnectionUser about the inviter.

addObserver

addObserver
void addObserver
(Observer observer)

Add event callback

Param
DESC
observer
The instance being listened to.

removeObserver

removeObserver
void removeObserver
(Observer observer)

Remove event callback

Param
DESC
observer
The instance being listened to.

requestConnection

requestConnection
void requestConnection
(List<String> roomIdList

int timeout

String extensionInfo

ConnectionRequestCallback callback)

Request connection invitation

Param
DESC
extensionInfo
Extension info.
roomIdList
The list of room IDs will be invited.
timeout
Timeout time, in seconds. If it is set to 0, the SDK will not execute timeout detection and will not trigger a timeout callback.

cancelConnectionRequest

cancelConnectionRequest
void cancelConnectionRequest
(List<String> roomIdList

TUIRoomDefine.ActionCallback callback)

Cancel request about connection invitation

Param
DESC
roomIdList
The list of room IDs whose connection requests will be canceled.

acceptConnection

acceptConnection
void acceptConnection
(String roomId

TUIRoomDefine.ActionCallback callback)

Accept the connection invitation

Param
DESC
roomId
The room ID of the inviter about connection invitation.

rejectConnection

rejectConnection
void rejectConnection
(String roomId

TUIRoomDefine.ActionCallback callback)

Reject the connection invitation

Param
DESC
roomId
The room ID of the inviter about connection invitation.

disconnect

disconnect
void disconnect
(TUIRoomDefine.ActionCallback callback)

Exit the connection.

Calling this interface will exit the room connection state, and can only be called in the connected state.

TUIConnectionCode

TUIConnectionCode

Connection Request Status

Enum
Value
DESC
UNKNOWN
-1
default.
SUCCESS
0
Request success.
ROOM_NOT_EXISTS
1
Request room not exist.
CONNECTING
2
The room you are invited to connect to is already in the invitation list or is already connected.
CONNECTING_OTHER_ROOM
3
The room you are invited to connect to is connecting with other rooms.
CONNECTION_FULL
4
The current number of connections has reached the maximum limit.
RETRY
5
Please try again.

TUIConnectionUser

TUIConnectionUser

Connection User Info

EnumType
DESC
avatarUrl
The user avatar url of the connection user.
joinConnectionTime
The Timestamp of when the user joined the connection.
roomId
The room id of the connection user.
userId
The user id of the connection user.
userName
The user name of the connection user.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback