Interface IBarcodeCameraView
-
- All Implemented Interfaces:
public interface IBarcodeCameraViewRepresents camera screen for barcodes scanning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceIBarcodeCameraView.ViewModelNotified about user interactions.
-
Method Summary
Modifier and Type Method Description abstract UnitattachViewModel(IBarcodeCameraView.ViewModel viewModel)abstract UnitattachPermissionViewModel(IPermissionViewModel viewModel)abstract UnitsetCameraOrientationMode(CameraOrientationMode cameraOrientationMode)Set camera orientation mode abstract UnitsetCameraModule(CameraModule cameraModule)Set camera module abstract UnitsetCameraZoomRatio(Float zoomRatio)Set current zoom ratio ranging from 0.5f to 100f. abstract UnitsetCameraZoomRange(ZoomRange zoomRange)Set custom available zoom range. abstract UnitlockMinFocusDistance(Boolean lockMinFocusDistance)Locks the minimal supported focus distance and disables a continuous focus abstract UnitsetSuccessfulDetectionInterval(Long detectionIntervalInMs)Set detection interval between successful frames in milliseconds abstract UnitsetBarcodeHighlightedDelegate(BarcodePolygonsView.BarcodeHighlightDelegate barcodeHighlightDelegate)Sets the delegate allowing to control which barcodes should be highlighted on the Barcode selection overlay abstract UnitsetSelectionOverlayEnabled(Boolean enabled)Enables or disables barcode selection overlay layer abstract UnitsetSelectionOverlayPolygonColor(Integer color)The color of the polygon in the selection overlay. abstract UnitsetSelectionOverlayTextColor(Integer color)The color of the text in the selection overlay. abstract UnitsetSelectionOverlayTextFormat(BarcodeOverlayTextFormat format)The color of the text in the selection overlay. abstract UnitsetSelectionOverlayTextContainerColor(Integer color)The color of the texts background in the selection overlay. abstract UnitsetSelectionOverlayHighlightedPolygonColor(Integer color)The color of the polygon in the selection overlay, when highlighted. abstract UnitsetSelectionOverlayHighlightedTextColor(Integer color)The color of the text in the selection overlay, when highlighted. abstract UnitsetSelectionOverlayHighlightedTextContainerColor(Integer color)The color of the texts background in the selection overlay, when highlighted. -
-
Method Detail
-
attachViewModel
abstract Unit attachViewModel(IBarcodeCameraView.ViewModel viewModel)
- Parameters:
viewModel- which will receive callbacks on user interactions.
-
attachPermissionViewModel
abstract Unit attachPermissionViewModel(IPermissionViewModel viewModel)
- Parameters:
viewModel- which will handle permissions.
-
setCameraOrientationMode
abstract Unit setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Set 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
-
setCameraZoomRatio
abstract Unit setCameraZoomRatio(Float zoomRatio)
Set current zoom ratio ranging from 0.5f to 100f. Equal to 1f represents 1x zoom ratio. Default value is 1f.
- Parameters:
zoomRatio- Target zoom ratio
-
setCameraZoomRange
abstract Unit setCameraZoomRange(ZoomRange zoomRange)
Set custom available zoom range. Min value 0.5f and max value 100f. Range 0.5x -> 100x is to become 1x -> 10x if that is what the device supports. Default value is ZoomRange(0.5f, 100f).
-
lockMinFocusDistance
abstract Unit lockMinFocusDistance(Boolean lockMinFocusDistance)
Locks the minimal supported focus distance and disables a continuous focus
- Parameters:
lockMinFocusDistance- iftrueminimal available focus distance will be locked,false- otherwise Default isfalse.
-
setSuccessfulDetectionInterval
abstract Unit setSuccessfulDetectionInterval(Long detectionIntervalInMs)
Set detection interval between successful frames in milliseconds
- Parameters:
detectionIntervalInMs- detection interval between successful frames
-
setBarcodeHighlightedDelegate
abstract Unit setBarcodeHighlightedDelegate(BarcodePolygonsView.BarcodeHighlightDelegate barcodeHighlightDelegate)
Sets the delegate allowing to control which barcodes should be highlighted on the Barcode selection overlay
-
setSelectionOverlayEnabled
abstract Unit setSelectionOverlayEnabled(Boolean enabled)
Enables or disables barcode selection overlay layer
-
setSelectionOverlayPolygonColor
abstract Unit setSelectionOverlayPolygonColor(Integer color)
The color of the polygon in the selection overlay.
-
setSelectionOverlayTextColor
abstract Unit setSelectionOverlayTextColor(Integer color)
The color of the text in the selection overlay.
-
setSelectionOverlayTextFormat
abstract Unit setSelectionOverlayTextFormat(BarcodeOverlayTextFormat format)
The color of the text in the selection overlay.
-
setSelectionOverlayTextContainerColor
abstract Unit setSelectionOverlayTextContainerColor(Integer color)
The color of the texts background in the selection overlay.
-
setSelectionOverlayHighlightedPolygonColor
abstract Unit setSelectionOverlayHighlightedPolygonColor(Integer color)
The color of the polygon in the selection overlay, when highlighted.
-
setSelectionOverlayHighlightedTextColor
abstract Unit setSelectionOverlayHighlightedTextColor(Integer color)
The color of the text in the selection overlay, when highlighted.
-
setSelectionOverlayHighlightedTextContainerColor
abstract Unit setSelectionOverlayHighlightedTextContainerColor(Integer color)
The color of the texts background in the selection overlay, when highlighted.
-
-
-
-