Created
July 29, 2022 07:36
-
-
Save larryluoo/943deef217c1b09b086b652f44e914d3 to your computer and use it in GitHub Desktop.
setEventHandler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
engine.setEventHandler(new IZegoEventHandler() { | |
/** Common event callbacks related to room users and streams. */ | |
/** Callback for updates on the current user's room connection status. */ | |
@Override | |
public void onRoomStateUpdate(String roomID, ZegoRoomState state, int errorCode, JSONObject extendedData) { | |
/** Implement the callback handling logic as needed. */ | |
} | |
/** Callback for updates on the status of other users in the room. */ | |
@Override | |
public void onRoomUserUpdate(String roomID, ZegoUpdateType updateType, ArrayList<ZegoUser> userList) { | |
/** Implement the callback handling logic as needed. */ | |
} | |
/** Callback for updates on the status of the streams in the room. */ | |
@Override | |
public void onRoomStreamUpdate(String roomID, ZegoUpdateType updateType, ArrayList<ZegoStream> streamList, JSONObject extendedData){ | |
/** Implement the callback handling logic as needed. */ | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment