please select
Conference
  • Overview
  • Web
    • Run Sample Demo
    • Integration
    • UI Customization
    • Conference Control
    • In-Conference Chat
    • On-Cloud Recording
    • AI Noise Suppression
    • Robot Streaming
    • Virtual Background
    • More Features
      • Floating Window
      • Text Watermark
    • 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
    • On-Cloud Recording
    • AI Noise Suppression
    • 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
    • On-Cloud Recording
    • AI Noise Suppression
    • 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
    • Conference Control
    • In-Conference Chat
    • On-Cloud Recording
    • AI Noise Suppression
    • Robot Streaming
    • More Features
      • Floating Window
      • Text Watermark
    • API Documentation
      • RoomKit API
      • RoomEngine API
        • API Overview
        • TUIRoomEvent
        • TUIRoomEngine
        • TUIRoomEngine Defines
    • FAQs
  • Flutter
    • Run Sample Demo
    • Integration
    • UI Customization
    • Conference Control
    • In-Conference Chat
    • On-Cloud Recording
    • AI Noise Suppression
    • 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
    • Free Minutes
    • Conference Monthly Packages
    • Billing Explanation for Subscription Package Duration
    • Pay-as-you-go
      • Billing of Audio and Video Duration
      • Billing of On-Cloud Recording and Recording Delivery
      • Billing of MixTranscoding and Relay to CDN
  • Server APIs
    • REST API
      • RESTful API Overview
      • RESTful API List
      • Room Management
        • Create a Room
        • Destroy a Room
        • Update the Room Information
        • Get the Room Information
      • User Management
        • Get the Room Member List
        • Update the Room Member Information
        • Change the Room Ownership
        • Mark Room Members
        • Ban Room Members
        • Unban Room Members
        • Get the Banned Room Member List
        • Remove Room Member
      • Seat Management
        • Get the Seat List
        • Pick User on the Seat
        • Kick User off the Seat
        • Lock the Seat
    • Third-Party Callback
      • Callback Overview
      • Callback Command List
      • Callback Configuration
        • Query Callback Configuration
        • Create Callback Configuration
        • Update Callback Configuration
        • Delete Callback Configuration
      • Room Related
        • After a Room Is Created
        • After a Room Is Destroyed
        • After the Room Information Is Updated
      • User Related
        • After a Room Is Entered
        • After a Room Is Left
      • Seat Connection Related
        • After the Seat List Is Changed
  • Error Code
Conference

RoomKit API

Introduction

TUIRoomKit is an open source UI layer suite for conference SDK, currently only supports Swift language on the iOS platform. The conference UI can be called up through simple API calls.

TUIRoomKit Interface

API
Description
Initialize the TUIRoomKit singleton object
Destroy the TUIRoomKit singleton object
Set user information (avatar, nickname) (optional)
Create a room
enterRoom
Enter the room

createInstance

Initialize the TUIRoomKit singleton object.
public class func createInstance() -> TUIRoomKit

destroyInstance

Destroy the TUIRoomKit singleton object.
public class func destroyInstance() -> Void

setSelfInfo(optional)

Set user information (avatar, nickname).
public func setSelfInfo(userName: String,
avatarURL: String,
onSuccess: @escaping TUISuccessBlock,
onError: @escaping TUIErrorBlock) -> Void
Parameter
Type
Meaning
userName
String
Username
avatarURL
String
User avatar URL
onSuccess
TUISuccessBlock
Successful callback
onError
TUIErrorBlock
Failure callback

createRoom

Create a room.
public func createRoom(roomInfo: TUIRoomInfo,
onSuccess: @escaping TUISuccessBlock,
onError: @escaping TUIErrorBlock) -> Void
The parameters are as follows:
Parameter
Type
Meaning
roomInfo
Room data
onSuccess
TUISuccessBlock
Successful callback
onError
TUIErrorBlock
Failure callback

enterRoom

Enter the room.
public func enterRoom(roomId: String,
enableAudio: Bool,
enableVideo: Bool,
isSoundOnSpeaker: Bool,
onSuccess: @escaping TUISuccessBlock,
onError: @escaping TUIErrorBlock) -> Void
The parameters are as follows:
Parameter
Type
Meaning
roomId
String
Room ID string
enableAudio
Bool
Whether to turn on the audio when entering the room
enableVideo
Bool
Whether to turn on the video when entering the room
isSoundOnSpeaker
Bool
Whether to turn on the speakers when entering the room
onSuccess
TUISuccessBlock
Successful callback
onError
TUIErrorBlock
Failure callback