We expose a interface through which you can setup your event listeners

public interface MeetingEventListener {
        void meetingJoined() {

        };
        void meetingEnded() {

        };
        void connect() {

        };
        void activeSpeaker(DyteParticipant participant) {

        };
        void participantJoin(DyteParticipant participant) {

        };
        void participantLeave(DyteParticipant participant) {

        };
        void disconnect() {

        };
        void message(HashMap<String, Object> data) {

        };
        void roomMessage(HashMap<String, Object> data) {

        };
        void participantUpdated(DyteParticipant participant) {

        }
    }

You can use this interface along with the methods DyteMeeting.addEventListener and DyteMeeting.removeEventListener to add or remove event listeners

Example:

DyteMeeting.addEventListener(new DyteMeeting.MeetingEventListener(){
        void meetingJoined(){
        Log.i("dytemeeting","meeting joined");
    }
});