Event
ZegoUIKitPrebuiltLiveAudioRoomVCDelegate
getSeatForegroundView
- function prototype:
func getSeatForegroundView(_ userInfo: ZegoUIKitUser?, seatIndex: Int) -> ZegoBaseAudioVideoForegroundView?
- example:
extension ViewController: ZegoUIKitPrebuiltLiveAudioRoomVCDelegate { func getSeatForegroundView(_ userInfo: ZegoUIKitUser?, seatIndex: Int) -> ZegoBaseAudioVideoForegroundView? { let view = ZegoBaseAudioVideoForegroundView(frame: CGRect(x: 0, y: 0, width: 60, height: 60), userID: userInfo?.userID, delegate: nil) //... return view } }
onLeaveLiveAudioRoom
- function prototype:
func onLeaveLiveAudio()
- example:
extension ViewController: ZegoUIKitPrebuiltLiveAudioRoomVCDelegate { func onLeaveLiveAudio() { print("is leave live audio room") //.... } }
onUserCountOrPropertyChanged
- function prototype:
func onUserCountOrPropertyChanged(_ users: [ZegoUIKitUser]?)
- example:
extension ViewController: ZegoUIKitPrebuiltLiveAudioRoomVCDelegate { func onUserCountOrPropertyChanged(_ users: [ZegoUIKitUser]?) { //.... } }