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 device's camera module to use. abstract UnitsetCameraZoomRatio(Float zoomRatio)Set current zoom ratio ranging from 0.5fto100f.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 UnitsetSuccessfulScanningInterval(Long scanningIntervalInMs)Set an interval between successful scanned 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 device's camera module to use.
- Parameters:
cameraModule- one of the supported modes - CameraModule
-
setCameraZoomRatio
abstract Unit setCameraZoomRatio(Float zoomRatio)
Set current zoom ratio ranging from
0.5fto100f.1frepresents 1x zoom ratio. The default value is1f.- Parameters:
zoomRatio- Target zoom ratio
-
setCameraZoomRange
abstract Unit setCameraZoomRange(ZoomRange zoomRange)
Set custom available zoom range. Min value
0.5fand max value100f. 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. The default is
false.- Parameters:
lockMinFocusDistance- iftrue- minimal available focus distance will be locked,false- otherwise
-
setSuccessfulScanningInterval
abstract Unit setSuccessfulScanningInterval(Long scanningIntervalInMs)
Set an interval between successful scanned frames in milliseconds.
- Parameters:
scanningIntervalInMs- interval between successful scanned 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.
-
-
-
-