Single image uploader
Defined under the namespace Scandit.Datacapture.Core
- SingleImageUploader
class SingleImageUploader : FrameSource
Added in version 6.13.0
The SingleImageUploader class is a frame source which allows the analysis of a single image. The user will be presented with a simple UI to pick and analyse an image on the device.
- desiredState
get desiredState(): FrameSourceState
Added in version 6.13.0
- settings
get settings(): SingleImageUploaderSettings
Added in version 6.13.0
Implemented from FrameSource. See FrameSource.desiredState.
- getCurrentState()
getCurrentState(): FrameSourceState
Added in version 6.13.0
Implemented from FrameSource. See FrameSource.getCurrentState.
Note that for this particular frame source, the states have a slightly different meaning: * FrameSourceState.Starting means the frame source is ready to be used * FrameSourceState.On means an image has been submitted and is being analysed.
- addListener(listener)
addListener(listener: FrameSourceListener | null):
void
Added in version 6.13.0
Implemented from FrameSource. See FrameSource.addListener().
- removeListener(listener)
removeListener(listener: FrameSourceListener | null):
void
Added in version 6.13.0
Implemented from FrameSource. See FrameSource.removeListener().
- default()
static get default(): SingleImageUploader
Added in version 6.13.0
Gets the default uploader.
Note: The SingleImageUploader processes only one frame at a time. To ensure it works as expected, make sure the mode settings include ScanIntention.Manual in the mode settings.
- switchToDesiredState(state)
switchToDesiredState(state: FrameSourceState): Promise<
void
>Added in version 6.13.0
Implemented from FrameSource. See FrameSource.switchToDesiredState().
- applySettings(settings)
applySettings(settings: SingleImageUploaderSettings): Promise<
void
>Added in version 6.13.0