Type | Description |
Set callback events for core control connections. | |
Layout mode during connection, supporting grid layout, floating window layout, and custom layout. | |
Connection view adapter interface, which allows you to add widgets to each audio and video stream view by implementing this interface. |
Type | Description |
Callback for changes in the list of connected users. | |
Callback for receiving a connection request. | |
Callback for receiving a request to cancel the connection. | |
Callback for connection request approval. | |
Callback for connection request rejection. | |
Callback for connection request timeout. | |
Callback for the host disconnecting the connection with this viewer. | |
Callback for the viewer actively disconnecting. | |
Callback for changes in the cross-room connection room list. | |
Callback for receiving a cross-room connection request. | |
Callback for receiving a request to cancel the cross-room connection. | |
Received callback for consent to cross-room connection | |
Received callback for cross-room connection rejection | |
Received callback for cross-room connection timeout. | |
Received callback for cross-room disconnection. | |
Received callback for room termination. |
Type | Description |
gridLayout | Grid Layout. |
floatLayout | Floating Window Layout. |
freeLayout | Custom Layout. |
API | Description |
Callback when creating a connected audience view. The View created through this API will be displayed on the connected audience's view. | |
Callback when updating the connected audience view. | |
Callback when creating a connected host view, the View created through this API will be displayed on the connected host's view. | |
Callback when updating the connected host view. |
func onConnectedUsersUpdated(userList: [TUIUserInfo], joinList: [TUIUserInfo], leaveList: [TUIUserInfo])
Parameter | Type | Description |
userList | List of connected users | |
joinList | Newly connected users | |
leaveList | Users who have left the connection |
func onUserConnectionRequest(inviterUser: TUIUserInfo)
Parameter | Type | Description |
inviterUser | Information of the user applying for connection |
func onUserConnectionCancelled(inviterUser: TUIUserInfo)
Parameter | Type | Description |
inviterUser | Information of the user canceling the connection |
func onUserConnectionAccepted(userInfo: TUIUserInfo)
Parameter | Type | Description |
userInfo | Information of users who agreed to the connection |
func onUserConnectionRejected(userInfo: TUIUserInfo)
Parameter | Type | Description |
userInfo | Information of users who rejected the connection |
func onUserConnectionTimeout(userInfo: TUIUserInfo)
Parameter | Type | Description |
userInfo | Information of users whose connection request timed out |
func onUserConnectionTerminated()
func onUserConnectionExited(userInfo: TUIUserInfo)
Parameter | Type | Description |
userInfo | Information of users disconnected from the seat |
func onConnectedRoomsUpdated(hostUserList: [TUIConnectionUser])
Parameter | Type | Description |
hostUserList | List of room owners of the connected room |
func onCrossRoomConnectionRequest(hostUser: TUIConnectionUser)
Parameter | Type | Description |
hostUser | Information on the live streaming room owner requesting a connection |
func onCrossRoomConnectionCancelled(hostUser: TUIConnectionUser)
Parameter | Type | Description |
hostUser | Cancel the information of the live streaming room owner requesting a connection |
func onCrossRoomConnectionAccepted(hostUser: TUIConnectionUser)
Parameter | Type | Description |
hostUser | Information on the live streaming room owner agreeing to the connection |
func onCrossRoomConnectionRejected(hostUser: TUIConnectionUser)
Parameter | Type | Description |
hostUser | Information on the live streaming room owner rejecting the connection |
func onCrossRoomConnectionTimeout(inviter: TUIConnectionUser, invitee: TUIConnectionUser)
Parameter | Type | Description |
inviter | Information on the live streaming room owner requesting a connection | |
invitee | Information on the live streaming room owner being invited to connect |
func onCrossRoomConnectionExited(hostUser: TUIConnectionUser)
Parameter | Type | Description |
hostUser | Information of the live streaming room exiting the connection |
func onRoomDismissed(roomId: String)
Parameter | Type | Description |
roomId | String | Room ID |
func createCoGuestView(userInfo: TUIUserInfo) -> UIView?
Parameter | Type | Description |
userInfo | User information of users connected to the microphone |
func updateCoGuestView(userInfo: TUIUserInfo, coGuestView: UIView)
Parameter | Type | Description |
userInfo | User information of users connected to the microphone | |
coGuestView | UIView |
func createCoHostView(connectionUser: TUIConnectionUser) -> UIView?
Parameter | Type | Description |
connectionUser | User information of the connected host |
func updateCoHostView(connectionUser: TUIConnectionUser, coHostView: UIView)
Parameter | Type | Description |
connectionUser | Information of the connected host | |
coHostView | UIView |
Was this page helpful?