Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

12. Leaving chat room

Room.leave() code

Методу передается обработчик ответа REST-приложения WCS-сервераServer REST app response handler function is passed to the metod.

Code Block
languagejava
themeRDark
room.leave(new RestAppCommunicator.Handler() {
    @Override
    public void onAccepted(Data data) {
        runOnUiThread(action);
    }

    @Override
    public void onRejected(Data data) {
        runOnUiThread(action);
    }
});

...