Package io.anyline2.viewplugin
Class ViewPluginComposite
-
- All Implemented Interfaces:
-
io.anyline2.view.UIChangeSizeNotifier
public final class ViewPluginComposite extends ViewPluginBase
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ScanViewPlugin>
children
private final Integer
index
private final ViewPluginCompositeConfig.ProcessingMode
processingMode
public final Event<JSONObject>
errorReceived
public final Event<JSONObject>
visualFeedbackReceived
public final Event<JSONObject>
scanInfoReceived
public final Event<JSONObject>
runSkippedReceived
public final Event<ScanResult>
resultReceived
public final Event<List<ScanResult>>
resultsReceived
public final Event<JSONObject>
uiFeedbackInfoReceived
-
Constructor Summary
Constructors Constructor Description ViewPluginComposite(JSONObject jsonConfig)
ViewPluginComposite(JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters)
ViewPluginComposite(ScanViewConfigHolder scanViewConfigHolder)
-
Method Summary
Modifier and Type Method Description final List<ScanViewPlugin>
getChildren()
final Integer
getIndex()
final ViewPluginCompositeConfig.ProcessingMode
getProcessingMode()
Unit
setUIChangeListener(UIChangeListener listener)
Unit
notifyUIScaledSize(UIScaledSize scaledSize)
List<ScanViewPlugin>
getActiveScanViewPlugin()
String
id()
List<ScanViewPlugin>
children()
Unit
subscribeToImageProvider(ImageProvider imageProvider)
Unit
unsubscribeFromImageProvider(ImageProvider imageProvider)
Unit
subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, List<BarcodeFormat> supportedFormats)
Unit
unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
Boolean
isScanPluginRunning()
Boolean
isStarted()
Unit
start()
Unit
stop()
Unit
dispose()
-
-
Constructor Detail
-
ViewPluginComposite
ViewPluginComposite(JSONObject jsonConfig)
-
ViewPluginComposite
ViewPluginComposite(JSONObject jsonConfig, ScanViewInitializationParameters initializationParameters)
-
ViewPluginComposite
ViewPluginComposite(ScanViewConfigHolder scanViewConfigHolder)
-
-
Method Detail
-
getChildren
final List<ScanViewPlugin> getChildren()
-
getProcessingMode
final ViewPluginCompositeConfig.ProcessingMode getProcessingMode()
-
setUIChangeListener
Unit setUIChangeListener(UIChangeListener listener)
-
notifyUIScaledSize
Unit notifyUIScaledSize(UIScaledSize scaledSize)
-
getActiveScanViewPlugin
List<ScanViewPlugin> getActiveScanViewPlugin()
-
children
List<ScanViewPlugin> children()
-
subscribeToImageProvider
Unit subscribeToImageProvider(ImageProvider imageProvider)
-
unsubscribeFromImageProvider
Unit unsubscribeFromImageProvider(ImageProvider imageProvider)
-
subscribeToNativeBarcodeProvider
Unit subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, List<BarcodeFormat> supportedFormats)
-
unsubscribeFromNativeBarcodeProvider
Unit unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
-
isScanPluginRunning
Boolean isScanPluginRunning()
-
-
-
-