Interface IBarcodeCameraView
-
- All Implemented Interfaces:
public interface IBarcodeCameraView
Represents camera screen for barcodes scanning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
IBarcodeCameraView.ViewModel
Notified about user interactions.
-
Method Summary
Modifier and Type Method Description abstract Unit
attachViewModel(IBarcodeCameraView.ViewModel viewModel)
abstract Unit
attachPermissionViewModel(IPermissionViewModel viewModel)
abstract Unit
setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Set camera orientation mode abstract Unit
setCameraModule(CameraModule cameraModule)
Set camera module abstract Unit
setCameraZoomRatio(Float zoomRatio)
Set current zoom ratio ranging from 0.5f to 100f. abstract Unit
setCameraZoomRange(ZoomRange zoomRange)
Set custom available zoom range. abstract Unit
lockMinFocusDistance(Boolean lockMinFocusDistance)
Locks the minimal supported focus distance and disables a continuous focus abstract Unit
setSuccessfulDetectionInterval(Long detectionIntervalInMs)
Set detection interval between successful frames in milliseconds abstract Unit
setBarcodeHighlightedDelegate(BarcodePolygonsView.BarcodeHighlightDelegate barcodeHighlightDelegate)
Sets the delegate allowing to control which barcodes should be highlighted on the Barcode selection overlay abstract Unit
setSelectionOverlayEnabled(Boolean enabled)
Enables or disables barcode selection overlay layer abstract Unit
setSelectionOverlayPolygonColor(Integer color)
The color of the polygon in the selection overlay. abstract Unit
setSelectionOverlayTextColor(Integer color)
The color of the text in the selection overlay. abstract Unit
setSelectionOverlayTextFormat(BarcodeOverlayTextFormat format)
The color of the text in the selection overlay. abstract Unit
setSelectionOverlayTextContainerColor(Integer color)
The color of the texts background in the selection overlay. abstract Unit
setSelectionOverlayHighlightedPolygonColor(Integer color)
The color of the polygon in the selection overlay, when highlighted. abstract Unit
setSelectionOverlayHighlightedTextColor(Integer color)
The color of the text in the selection overlay, when highlighted. abstract Unit
setSelectionOverlayHighlightedTextContainerColor(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
- iftrue
minimal 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.
-
-
-
-