Package io.anyline2.viewplugin
Class ViewPluginBase
-
- All Implemented Interfaces:
public abstract class ViewPluginBase
-
-
Field Summary
Fields Modifier and Type Field Description 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
-
Constructor Summary
Constructors Constructor Description ViewPluginBase()
-
Method Summary
Modifier and Type Method Description abstract String
id()
abstract List<ScanViewPlugin>
getActiveScanViewPlugin()
ScanViewPlugin
getFirstActiveScanViewPlugin()
abstract List<ScanViewPlugin>
children()
abstract void
setUIChangeListener(UIChangeListener listener)
abstract void
subscribeToImageProvider(ImageProvider imageProvider)
abstract void
unsubscribeFromImageProvider(ImageProvider imageProvider)
abstract void
subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, List<BarcodeFormat> supportedFormats)
abstract void
unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
abstract boolean
isStarted()
abstract boolean
isScanPluginRunning()
abstract void
start()
abstract void
stop()
abstract void
dispose()
void
playBeepSound()
void
vibrate()
-
-
Method Detail
-
getActiveScanViewPlugin
abstract List<ScanViewPlugin> getActiveScanViewPlugin()
-
getFirstActiveScanViewPlugin
ScanViewPlugin getFirstActiveScanViewPlugin()
-
children
abstract List<ScanViewPlugin> children()
-
setUIChangeListener
abstract void setUIChangeListener(UIChangeListener listener)
-
subscribeToImageProvider
abstract void subscribeToImageProvider(ImageProvider imageProvider)
-
unsubscribeFromImageProvider
abstract void unsubscribeFromImageProvider(ImageProvider imageProvider)
-
subscribeToNativeBarcodeProvider
abstract void subscribeToNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider, List<BarcodeFormat> supportedFormats)
-
unsubscribeFromNativeBarcodeProvider
abstract void unsubscribeFromNativeBarcodeProvider(NativeBarcodeProvider nativeBarcodeProvider)
-
isStarted
abstract boolean isStarted()
-
isScanPluginRunning
abstract boolean isScanPluginRunning()
-
start
abstract void start()
-
stop
abstract void stop()
-
dispose
abstract void dispose()
-
playBeepSound
void playBeepSound()
-
vibrate
void vibrate()
-
-
-
-