Package io.anyline2.plugin
Class ScanPlugin
-
- All Implemented Interfaces:
public class ScanPlugin
-
-
Field Summary
Fields Modifier and Type Field Description public Event<Void>
onStartReceived
public Event<Void>
onStopReceived
public Event<JSONObject>
errorReceived
public Event<JSONObject>
visualFeedbackReceived
public Event<JSONObject>
scanInfoReceived
public Event<JSONObject>
runSkippedReceived
public Event<ScanResult>
resultReceived
public String
id
public ImageProvider
imageProvider
public final PluginConfig
scanPluginConfig
-
Constructor Summary
Constructors Constructor Description ScanPlugin(JSONObject jsonConfig)
ScanPlugin(JSONObject jsonConfig, AssetContext assetContext)
ScanPlugin(PluginConfig pluginConfig, AssetContext assetContext)
-
Method Summary
Modifier and Type Method Description String
getId()
ImageProvider
getImageProvider()
void
setImageProvider(ImageProvider imageProvider)
PluginConfig
getScanPluginConfig()
void
start()
void
pause()
void
resume()
void
stop()
boolean
isStarted()
boolean
isRunning()
void
processImage(AnylineImage anylineImage)
void
processImage(AnylineImage anylineImage, boolean sync)
ALRect
getRegionOfInterest()
void
setRegionOfInterest(ALRect alRect)
void
onError(String coreVariable)
void
onVisualFeedback(String coreVariable)
void
onInfo(String coreVariable)
void
onRunSkipped(String coreVariable)
void
onResult(String coreVariable)
void
onResult(AnylineImage sdkImage, String coreVariable)
void
dispose()
PluginType
getType()
void
addReportingValues(String jsonReportingValues)
boolean
isFaceDetectionEnabled()
-
-
Constructor Detail
-
ScanPlugin
ScanPlugin(JSONObject jsonConfig)
-
ScanPlugin
ScanPlugin(JSONObject jsonConfig, AssetContext assetContext)
-
ScanPlugin
ScanPlugin(PluginConfig pluginConfig, AssetContext assetContext)
-
-
Method Detail
-
getImageProvider
ImageProvider getImageProvider()
-
setImageProvider
void setImageProvider(ImageProvider imageProvider)
-
getScanPluginConfig
PluginConfig getScanPluginConfig()
-
start
void start()
-
pause
void pause()
-
resume
void resume()
-
stop
void stop()
-
isStarted
boolean isStarted()
-
isRunning
boolean isRunning()
-
processImage
void processImage(AnylineImage anylineImage)
-
processImage
void processImage(AnylineImage anylineImage, boolean sync)
-
getRegionOfInterest
ALRect getRegionOfInterest()
-
setRegionOfInterest
void setRegionOfInterest(ALRect alRect)
-
onVisualFeedback
void onVisualFeedback(String coreVariable)
-
onRunSkipped
void onRunSkipped(String coreVariable)
-
onResult
void onResult(AnylineImage sdkImage, String coreVariable)
-
dispose
void dispose()
-
getType
PluginType getType()
-
addReportingValues
void addReportingValues(String jsonReportingValues)
-
isFaceDetectionEnabled
boolean isFaceDetectionEnabled()
-
-
-
-