use of com.herewhite.sdk.domain.ImageInformationWithUrl in project whiteboard-android by netless-io.
the class CameraMoveActivity method onCreate.
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_camera_move);
getSupportActionBar().hide();
whiteboardView = findViewById(R.id.white);
WhiteboardView.setWebContentsDebuggingEnabled(true);
joinRoom();
findViewById(R.id.insertImage).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (room == null) {
return;
}
ImageInformationWithUrl imageInformationWithUrl = new ImageInformationWithUrl();
imageInformationWithUrl.setUrl("https://placekitten.com/1920/1080");
imageInformationWithUrl.setHeight(imgH);
imageInformationWithUrl.setWidth(imgW);
imageInformationWithUrl.setCenterX(0);
imageInformationWithUrl.setCenterY(0);
room.insertImage(imageInformationWithUrl);
}
});
findViewById(R.id.scaleSmall).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
moveToSmall();
}
});
findViewById(R.id.scaleCamera).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
moveCamera();
}
});
findViewById(R.id.scaleCameraFill).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
moveCameraFillContent();
}
});
findViewById(R.id.orientation).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
orientation();
}
});
}
use of com.herewhite.sdk.domain.ImageInformationWithUrl in project whiteboard-android by netless-io.
the class RoomTest method testInsertImage_ImageInformationWithUrl.
public void testInsertImage_ImageInformationWithUrl() {
ImageInformationWithUrl imageInfoWithUrl = new ImageInformationWithUrl(100d, 100d, 1080d, 720d, "url");
mRoom.insertImage(imageInfoWithUrl);
verify(mockJsBridgeInterface).callHandler(eq("room.insertImage"), (Object[]) any());
verify(mockJsBridgeInterface).callHandler(eq("room.completeImageUpload"), (Object[]) any());
}
Aggregations