Package io.scanbot.sdk.ui.view.vin
Class VinScannerCameraView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
,io.scanbot.sdk.camera.BaseResultHandler
,io.scanbot.sdk.ui.view.vin.IVinScannerCameraView
,io.scanbot.sdk.vin.VinScannerFrameHandler.ResultHandler
public final class VinScannerCameraView extends FrameLayout implements IVinScannerCameraView, VinScannerFrameHandler.ResultHandler
-
-
Field Summary
Fields Modifier and Type Field Description public final static Float
FINDER_FIXED_HEIGHT
-
Constructor Summary
Constructors Constructor Description VinScannerCameraView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description Unit
attachViewModel(IVinScannerCameraView.ViewModel viewModel)
Attach ViewModel which will receive callbacks on user interactions. Boolean
handle(FrameHandlerResult<VinScanResult, SdkLicenseError> result)
Called every time contour detection was performed on a frame. Unit
attachPermissionViewModel(IPermissionViewModel viewModel)
Attach special ViewModel implementation which will handle runtime permissions. Unit
setCameraModule(CameraModule cameraModule)
Set camera module. final Unit
setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
Unit
setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode. -
-
Constructor Detail
-
VinScannerCameraView
VinScannerCameraView(Context context, AttributeSet attrs)
-
-
Method Detail
-
attachViewModel
Unit attachViewModel(IVinScannerCameraView.ViewModel viewModel)
Attach ViewModel which will receive callbacks on user interactions.
-
handle
Boolean handle(FrameHandlerResult<VinScanResult, SdkLicenseError> result)
Called every time contour detection was performed on a frame.
- Parameters:
result
- information about detection results on a single frame
-
attachPermissionViewModel
Unit attachPermissionViewModel(IPermissionViewModel viewModel)
Attach special ViewModel implementation which will handle runtime permissions.
-
setCameraModule
Unit setCameraModule(CameraModule cameraModule)
Set camera module.
- Parameters:
cameraModule
- one of the supported modes - CameraModule
-
setCameraPreviewMode
final Unit setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
-
setCameraOrientationMode
Unit setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode.
- Parameters:
cameraOrientationMode
- CameraOrientationMode.LANDSCAPE or CameraOrientationMode.PORTRAIT
-
-
-
-