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
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:
Untitledpublic func addButtonToMenuBar(_ button: UIButton, role: ZegoLiveAudioRoomRole)
1
clearBottomBarExtendButtons
You can call this interface to empty the button added by
addButtonToBottomMenuBar
function prototype:
Untitledpublic func clearBottomBarExtendButtons(_ role: ZegoLiveAudioRoomRole)
1
setBackgroundView
You can call this interface to customize the background view of the live page
function prototype:
Untitledpublic func setBackgroundView(_ view: UIView)
1