Package io.scanbot.sdk.ui.view.hic
Class HealthInsuranceCardCameraView
-
- 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.hicscanner.HealthInsuranceCardScannerFrameHandler.ResultHandler
,io.scanbot.sdk.ui.view.hic.IHealthInsuranceCardCameraView
public final class HealthInsuranceCardCameraView extends FrameLayout implements IHealthInsuranceCardCameraView, HealthInsuranceCardScannerFrameHandler.ResultHandler
Represents camera view for HealthInsuranceCardScanner scanner.
-
-
Field Summary
Fields Modifier and Type Field Description private String
detectionStatusFailedDetectionText
private String
detectionStatusFailedValidationText
private String
detectionStatusSuccessText
private String
detectionStatusDefaultText
-
Constructor Summary
Constructors Constructor Description HealthInsuranceCardCameraView(Context context, AttributeSet attrs)
-
Method Summary
-
-
Constructor Detail
-
HealthInsuranceCardCameraView
HealthInsuranceCardCameraView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getDetectionStatusFailedDetectionText
final String getDetectionStatusFailedDetectionText()
-
setDetectionStatusFailedDetectionText
final Unit setDetectionStatusFailedDetectionText(String detectionStatusFailedDetectionText)
-
getDetectionStatusFailedValidationText
final String getDetectionStatusFailedValidationText()
-
setDetectionStatusFailedValidationText
final Unit setDetectionStatusFailedValidationText(String detectionStatusFailedValidationText)
-
getDetectionStatusSuccessText
final String getDetectionStatusSuccessText()
-
setDetectionStatusSuccessText
final Unit setDetectionStatusSuccessText(String detectionStatusSuccessText)
-
getDetectionStatusDefaultText
final String getDetectionStatusDefaultText()
-
setDetectionStatusDefaultText
final Unit setDetectionStatusDefaultText(String detectionStatusDefaultText)
-
attachViewModel
Unit attachViewModel(IHealthInsuranceCardCameraView.ViewModel viewModel)
- Parameters:
viewModel
- which will receive callbacks on user interactions.
-
attachPermissionViewModel
Unit attachPermissionViewModel(IPermissionViewModel viewModel)
- Parameters:
viewModel
- which will handle permissions
-
setCameraOrientationMode
Unit setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode
- Parameters:
cameraOrientationMode
- CameraOrientationMode.LANDSCAPE or CameraOrientationMode.PORTRAIT
-
setCameraModule
Unit setCameraModule(CameraModule cameraModule)
Set camera module
- Parameters:
cameraModule
- one of the supported modes - CameraModule
-
setCameraPreviewMode
final Unit setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
-
handle
Boolean handle(FrameHandlerResult<EhicRecognitionResult, SdkLicenseError> result)
Called every time contour detection was performed on a frame.
- Parameters:
result
- information about detection results on a single frame
-
-
-
-