Skip to content

Instantly share code, notes, and snippets.

@larryluoo
Created July 29, 2022 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larryluoo/943deef217c1b09b086b652f44e914d3 to your computer and use it in GitHub Desktop.
Save larryluoo/943deef217c1b09b086b652f44e914d3 to your computer and use it in GitHub Desktop.
setEventHandler
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