Event
- ZegoTurnOnYourMicrophoneRequestListener
- ZegoUserCountOrPropertyChangedListener
- ZegoSeatTakingRequestAudienceListener
- ZegoSeatTakingRequestHostListener
- ZegoSeatsChangedListener
- ZegoSeatsClosedListener
ZegoTurnOnYourMicrophoneRequestListener
onTurnOnYourMicrophoneRequest
This callback will be triggered when other user try to open your microphone.
- function prototype:
Untitledvoid onTurnOnYourMicrophoneRequest(ZegoUIKitUser fromUser)
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setTurnOnYourMicrophoneRequestListener(new ZegoTurnOnYourMicrophoneRequestListener() { @Override public void onTurnOnYourMicrophoneRequest(ZegoUIKitUser fromUser) { } });
1
ZegoUserCountOrPropertyChangedListener
onUserCountOrPropertyChanged
This callback will be triggered when room user count changed or property changed.
- function prototype:
Untitledvoid onUserCountOrPropertyChanged(List<ZegoUIKitUser> userList)
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setUserCountOrPropertyChangedListener(new ZegoUserCountOrPropertyChangedListener() { @Override public void onUserCountOrPropertyChanged(List<ZegoUIKitUser> userList) { } });
1
ZegoSeatTakingRequestAudienceListener
onSeatTakingRequestRejected
This callback will be triggered to audience when room user request take seat and is rejected by room host.
- function prototype:
Untitledvoid onSeatTakingRequestRejected()
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatTakingRequestAudienceListener(new ZegoSeatTakingRequestAudienceListener() { @Override public void onSeatTakingRequestRejected() { } });
1
onHostSeatTakingInviteSent
This callback will be triggered to audience when room host invite users to be a speaker.
- function prototype:
Untitledvoid onHostSeatTakingInviteSent()
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatTakingRequestAudienceListener(new ZegoSeatTakingRequestAudienceListener() { @Override public void onHostSeatTakingInviteSent() { } });
1
ZegoSeatTakingRequestHostListener
onSeatTakingRequested
This callback will be triggered to host when room host receive user's request to be a speaker.
- function prototype:
UntitledonSeatTakingRequested(ZegoUIKitUser audience)
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatTakingRequestHostListener(new setSeatTakingRequestHostListener() { @Override public void onSeatTakingRequested(ZegoUIKitUser audience) { } });
1
onSeatTakingRequestCancelled
This callback will be triggered to host when room host receive audience's request to be a speaker and then canceled the request.
- function prototype:
UntitledonSeatTakingRequestCancelled(ZegoUIKitUser audience)
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatTakingRequestHostListener(new setSeatTakingRequestHostListener() { @Override public void onSeatTakingRequestCancelled(ZegoUIKitUser audience) { } });
1
onSeatTakingInviteRejected
This callback will be triggered to host when room host invite audience to be speaker and is rejected by audience.
- function prototype:
UntitledonSeatTakingInviteRejected()
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatTakingRequestHostListener(new setSeatTakingRequestHostListener() { @Override public void onSeatTakingInviteRejected() { } });
1
ZegoSeatsChangedListener
onSeatsChanged
This callback will be triggered when room speaker changed.
- function prototype:
Untitledvoid onSeatsChanged(Map<Integer, ZegoUIKitUser> takenSeats, List<Integer> untakenSeats)
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatsChangedListener(new ZegoSeatsChangedListener() { @Override public void onSeatsChanged(Map<Integer, ZegoUIKitUser> takenSeats, List<Integer> untakenSeats) { } });
1
ZegoSeatsClosedListener
onSeatsClosed
This callback will be triggered when room host close all seats
- function prototype:
Untitledvoid onSeatsClosed()
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatsClosedListener(new ZegoSeatsClosedListener() { @Override public void onSeatsClosed() { } });
1
onSeatsOpened
This callback will be triggered when room host open all seats.
- function prototype:
Untitledvoid onSeatsOpened()
1
- example:
UntitledZegoUIKitPrebuiltLiveAudioRoomFragment fragment ; // ... fragment.setSeatsClosedListener(new ZegoSeatsClosedListener() { @Override public void onSeatsOpened() { } });
1