Barcode Scan Preview View
This class is the custom view which include the preview/camera/analyzer for the barcode scanning. Please use it as UI component and operate with the right interface API.
Since
1.0.0
Constructors
Functions
Add filter if you want to exclude some barcodes so will not go to scan result. If you give many filters, the barcode should pass all filters, then will go to scan result.
Add overlay if you want to see barcode outline visually.
Use control if you need to control camera resource during runtime such as flashlight, zoom level, etc,.
Add this interface is to handle barcode result.
this is to terminate the preview. usually call when the scan is done. The engine would also be stopped in this process. Need to call init before hand
Return current preview state.
This is for the preview to get initial configuration data to know what to do If the config object is not set, the other interface API would not work
This is to temporarily pause the preview frame on the UI. Need to call stopBarcodeAnalyzing to stop the barcode scanning analysis.
This is to resume the preview after temporarily paused by pausePreview. Need to call startBarcodeAnalyzing to resume the barcode scanning analysis.
Set the viewfinder if you want to draw. default value is null
This is to start or resume the barcode engine to consume the frame for barcode detection Need to call init before hand Only work when getPreviewState == RESUME or PAUSE
This is to start camera preview to show frames, the engine would also be started automatically in this function Need to call init before hand
this is to pause the barcode engine from consuming the camera frames. Need to call init before hand Only work when getPreviewState == RESUME or PAUSE