Package io.scanbot.sdk.ui.view.camera
Interface ICameraView
-
- All Implemented Interfaces:
public interface ICameraView
Represents camera screen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ICameraView.ViewModel
Notified about user interactions.
-
Method Summary
Modifier and Type Method Description abstract Unit
attachViewModel(ICameraView.ViewModel viewModel)
abstract Unit
attachPermissionViewModel(IPermissionViewModel viewModel)
abstract Unit
setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
Sets camera preview mode. abstract Unit
setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode. abstract Unit
setCameraModule(CameraModule cameraModule)
Set camera module. -
-
Method Detail
-
attachViewModel
abstract Unit attachViewModel(ICameraView.ViewModel viewModel)
- Parameters:
viewModel
- which will receive callbacks on user interactions.
-
attachPermissionViewModel
abstract Unit attachPermissionViewModel(IPermissionViewModel viewModel)
- Parameters:
viewModel
- which will handle permissions.
-
setCameraPreviewMode
abstract Unit setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
Sets camera preview mode.
- Parameters:
cameraPreviewMode
- CameraPreviewMode.FILL_IN or CameraPreviewMode.FIT_IN
-
setCameraOrientationMode
abstract Unit setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode.
- Parameters:
cameraOrientationMode
- CameraOrientationMode.LANDSCAPE or CameraOrientationMode.PORTRAIT
-
setCameraModule
abstract Unit setCameraModule(CameraModule cameraModule)
Set camera module.
- Parameters:
cameraModule
- one of the supported modes - CameraModule
-
-
-
-