Floating Camera Preview simply create a working window with the camera.
Setting Maven.
maven { url 'https://jitpack.io' }Implementation Version.
implementation 'com.github.kekhong95:floating-camera-preview:1.1'CameraWindow window = new CameraWindow(this, new CameraCustomView.CameraCustomViewListener() {
@Override
public void onClose() {
finish();
}
@Override
public void onError(Exception exception) {
}
});
window.create();
// to close call
window.close();