Event
ZegoUIKitPrebuiltLiveAudioRoomVCDelegate
getSeatForegroundView
- function prototype:
Untitledfunc getSeatForegroundView(_ userInfo: ZegoUIKitUser?, seatIndex: Int) -> ZegoBaseAudioVideoForegroundView?
1
- example:
Untitledextension 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 } }
1
onLeaveLiveAudioRoom
- function prototype:
Untitledfunc onLeaveLiveAudio()
1
- example:
Untitledextension ViewController: ZegoUIKitPrebuiltLiveAudioRoomVCDelegate { func onLeaveLiveAudio() { print("is leave live audio room") //.... } }
1
onUserCountOrPropertyChanged
- function prototype:
Untitledfunc onUserCountOrPropertyChanged(_ users: [ZegoUIKitUser]?)
1
- example:
Untitledextension ViewController: ZegoUIKitPrebuiltLiveAudioRoomVCDelegate { func onUserCountOrPropertyChanged(_ users: [ZegoUIKitUser]?) { //.... } }
1