API
ZegoUIKitPrebuiltLiveAudioRoomVC
init
Before entering the voice chat room, you must call this interface to initialize the voice chat room.
function prototype:
/// 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)
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
parameterfunction prototype:
public func addButtonToMenuBar(_ button: UIButton, role: ZegoLiveAudioRoomRole)
clearBottomBarExtendButtons
You can call this interface to empty the button added by
addButtonToBottomMenuBar
function prototype:
public func clearBottomBarExtendButtons(_ role: ZegoLiveAudioRoomRole)
setBackgroundView
You can call this interface to customize the background view of the live page
function prototype:
public func setBackgroundView(_ view: UIView)