Package io.anyline2.viewplugin
Class ScanViewPlugin
-
- All Implemented Interfaces:
public class ScanViewPlugin extends ViewPluginBase
-
-
Field Summary
Fields Modifier and Type Field Description public ScanPlugin
scanPlugin
public final ViewPluginConfig
scanViewPluginConfig
public Event<JSONObject>
errorReceived
public Event<JSONObject>
visualFeedbackReceived
public Event<JSONObject>
scanInfoReceived
public Event<JSONObject>
runSkippedReceived
public Event<ScanResult>
resultReceived
public Event<List<ScanResult>>
resultsReceived
public Event<JSONObject>
uiFeedbackInfoReceived
-
Constructor Summary
Constructors Constructor Description ScanViewPlugin(JSONObject jsonConfig)
ScanViewPlugin(JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters)
ScanViewPlugin(JSONObject jsonConfig, AssetContext assetContext)
ScanViewPlugin(JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters, AssetContext assetContext)
ScanViewPlugin(ScanViewConfigHolder scanViewConfigHolder, AssetContext assetContext)
-
Method Summary
Modifier and Type Method Description String
id()
List<ScanViewPlugin>
getActiveScanViewPlugin()
List<ScanViewPlugin>
children()
void
subscribeToImageProvider(ImageProvider imageProvider)
void
unsubscribeFromImageProvider(ImageProvider imageProvider)
void
subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, List<BarcodeFormat> supportedFormats)
void
unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
ALRect
getROI()
void
setROI(ALRect roi)
CutoutRect
getCutoutRect()
void
calcCutOutAndImageCropBounds(Context context, int frameWidth, int frameHeight, int viewWidth, int viewHeight, float scale)
boolean
isScanPluginRunning()
boolean
isStarted()
void
start()
void
stop()
void
dispose()
void
setUIChangeListener(UIChangeListener listener)
-
-
Constructor Detail
-
ScanViewPlugin
ScanViewPlugin(JSONObject jsonConfig)
-
ScanViewPlugin
ScanViewPlugin(JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters)
-
ScanViewPlugin
ScanViewPlugin(JSONObject jsonConfig, AssetContext assetContext)
-
ScanViewPlugin
ScanViewPlugin(JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters, AssetContext assetContext)
-
ScanViewPlugin
ScanViewPlugin(ScanViewConfigHolder scanViewConfigHolder, AssetContext assetContext)
-
-
Method Detail
-
getActiveScanViewPlugin
List<ScanViewPlugin> getActiveScanViewPlugin()
-
children
List<ScanViewPlugin> children()
-
subscribeToImageProvider
void subscribeToImageProvider(ImageProvider imageProvider)
-
unsubscribeFromImageProvider
void unsubscribeFromImageProvider(ImageProvider imageProvider)
-
subscribeToNativeBarcodeProvider
void subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, List<BarcodeFormat> supportedFormats)
-
unsubscribeFromNativeBarcodeProvider
void unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
-
getCutoutRect
CutoutRect getCutoutRect()
-
calcCutOutAndImageCropBounds
void calcCutOutAndImageCropBounds(Context context, int frameWidth, int frameHeight, int viewWidth, int viewHeight, float scale)
-
isScanPluginRunning
boolean isScanPluginRunning()
-
isStarted
boolean isStarted()
-
start
void start()
-
stop
void stop()
-
dispose
void dispose()
-
setUIChangeListener
void setUIChangeListener(UIChangeListener listener)
-
-
-
-