Package io.anyline2.viewplugin
Class ViewPluginBase
- java.lang.Object
-
- io.anyline2.viewplugin.ViewPluginBase
-
- Direct Known Subclasses:
ScanViewPlugin
public abstract class ViewPluginBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description Event<org.json.JSONObject>
errorReceived
Event<ScanResult>
resultReceived
Event<java.util.List<ScanResult>>
resultsReceived
Event<org.json.JSONObject>
runSkippedReceived
Event<org.json.JSONObject>
scanInfoReceived
Event<org.json.JSONObject>
visualFeedbackReceived
-
Constructor Summary
Constructors Constructor Description ViewPluginBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List<ScanViewPlugin>
children()
abstract void
dispose()
abstract java.util.List<ScanViewPlugin>
getActiveScanViewPlugin()
ScanViewPlugin
getFirstActiveScanViewPlugin()
abstract java.lang.String
id()
abstract boolean
isScanPluginRunning()
abstract boolean
isStarted()
void
playBeepSound()
abstract void
setUIChangeListener(UIChangeListener listener)
abstract void
start()
abstract void
stop()
abstract void
subscribeToImageProvider(ImageProvider imageProvider)
abstract void
subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, java.util.List<BarcodeFormat> supportedFormats)
abstract void
unsubscribeFromImageProvider(ImageProvider imageProvider)
abstract void
unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
void
vibrate()
-
-
-
Field Detail
-
errorReceived
public Event<org.json.JSONObject> errorReceived
-
visualFeedbackReceived
public Event<org.json.JSONObject> visualFeedbackReceived
-
scanInfoReceived
public Event<org.json.JSONObject> scanInfoReceived
-
runSkippedReceived
public Event<org.json.JSONObject> runSkippedReceived
-
resultReceived
public Event<ScanResult> resultReceived
-
resultsReceived
public Event<java.util.List<ScanResult>> resultsReceived
-
-
Method Detail
-
id
public abstract java.lang.String id()
-
getActiveScanViewPlugin
public abstract java.util.List<ScanViewPlugin> getActiveScanViewPlugin()
-
getFirstActiveScanViewPlugin
public ScanViewPlugin getFirstActiveScanViewPlugin()
-
children
public abstract java.util.List<ScanViewPlugin> children()
-
setUIChangeListener
public abstract void setUIChangeListener(UIChangeListener listener)
-
subscribeToImageProvider
public abstract void subscribeToImageProvider(ImageProvider imageProvider)
-
unsubscribeFromImageProvider
public abstract void unsubscribeFromImageProvider(ImageProvider imageProvider)
-
subscribeToNativeBarcodeProvider
public abstract void subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, java.util.List<BarcodeFormat> supportedFormats)
-
unsubscribeFromNativeBarcodeProvider
public abstract void unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
-
isStarted
public abstract boolean isStarted()
-
isScanPluginRunning
public abstract boolean isScanPluginRunning()
-
start
public abstract void start()
-
stop
public abstract void stop()
-
dispose
public abstract void dispose()
-
playBeepSound
public void playBeepSound()
-
vibrate
public void vibrate()
-
-