use of com.herewhite.demo.utils.EmptyRoomListener in project whiteboard-android by netless-io.
the class CameraMoveActivity method joinRoom.
private void joinRoom() {
WhiteSdkConfiguration configuration = new WhiteSdkConfiguration(demoAPI.getAppId(), true);
whiteSdk = new WhiteSdk(whiteboardView, this, configuration);
RoomParams roomParams = new RoomParams(demoAPI.getRoomUUID(), demoAPI.getRoomToken(), DemoAPI.DEFAULT_UID);
whiteSdk.joinRoom(roomParams, new EmptyRoomListener(), new Promise<Room>() {
@Override
public void then(Room room) {
CameraMoveActivity.this.room = room;
loadImageInfo("https://placekitten.com/1920/1080");
}
@Override
public void catchEx(SDKError t) {
showToast(t.getMessage());
}
});
}
use of com.herewhite.demo.utils.EmptyRoomListener in project whiteboard-android by netless-io.
the class CameraMoveImageActivity method joinRoom.
private void joinRoom() {
WhiteSdkConfiguration configuration = new WhiteSdkConfiguration(demoAPI.getAppId(), true);
whiteSdk = new WhiteSdk(whiteboardView, this, configuration);
RoomParams roomParams = new RoomParams(demoAPI.getRoomUUID(), demoAPI.getRoomToken(), DemoAPI.DEFAULT_UID);
whiteSdk.joinRoom(roomParams, new EmptyRoomListener(), new Promise<Room>() {
@Override
public void then(Room room) {
CameraMoveImageActivity.this.room = room;
loadImageInfo(TEST_IMAGE_URL);
}
@Override
public void catchEx(SDKError t) {
showToast(t.getMessage());
}
});
}
Aggregations