logo
On this page

API


ZegoUIKitPrebuiltLiveAudioRoomVC

init

Before entering the voice chat room, you must call this interface to initialize the voice chat room.

function prototype:

Untitled
/// Initialization of chat room
/// - Parameters:
///   - appID: Your appID
///   - appSign: Your appSign
///   - userID: User unique identification
///   - userName: userName
///   - roomID: Chat room ID
///   - config: Personalized configuration
public init(_ appID: UInt32, 
            appSign: String,
            userID: String, 
            userName: String, 
            roomID: String, 
            config: ZegoUIKitPrebuiltLiveAudioRoomConfig)
1
Copied!

addButtonToMenuBar

You can add custom buttons to the bottom bar by calling this interface

You can control the identity scene displayed by the button by setting the role parameter

function prototype:

Untitled
public func addButtonToMenuBar(_ button: UIButton, role: ZegoLiveAudioRoomRole)
1
Copied!

clearBottomBarExtendButtons

You can call this interface to empty the button added by addButtonToBottomMenuBar

function prototype:

Untitled
public func clearBottomBarExtendButtons(_ role: ZegoLiveAudioRoomRole)
1
Copied!

setBackgroundView

You can call this interface to customize the background view of the live page

function prototype:

Untitled
public func setBackgroundView(_ view: UIView)
1
Copied!