-
- All Implemented Interfaces:
-
com.abbyy.mobile.uicomponents.scenario.CaptureScenario
public final class DataCaptureScenario extends BaseCaptureScenario implements CaptureScenario
Scenario for data capture.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDataCaptureScenario.CharInfoExtended information about the character formatting.
public final classDataCaptureScenario.DataFieldA recognized data field. Provides field contents, location and included data fields, if applicable.
public final classDataCaptureScenario.DataFieldInfoInformation about a data field that can be detected on current data scheme. Provides field id, name and, if applicable, included data fields.
public final classDataCaptureScenario.DataSchemeInformation on the data scheme applied to the recognized frame. This class provides access to the identifier and human-readable name of the scheme, as well as full list of fields that can be detected on a document applying this data scheme.
public final classDataCaptureScenario.ResultThe result of DataCaptureScenario.
public interfaceDataCaptureScenario.CallbackThe callback for DataCaptureScenario.
public interfaceDataCaptureScenario.CloseListenerListener for the close button.
public enumDataCaptureScenario.ResourceTypeString resources for DataCaptureScenario that should be shown according to the corresponding view control.
public interfaceDataCaptureScenario.UISettingsProvides access to extra user interface settings of current view control.
public interfaceDataCaptureScenario.DataCaptureSettingsSettings of data capture.
public final classDataCaptureScenario.AreaOfInterestArea of interest for data capture.
-
Field Summary
Fields Modifier and Type Field Description private final ImageCaptureSettingsimageCaptureSettingsprivate final DataCaptureScenario.DataCaptureSettingsdataCaptureSettings
-
Constructor Summary
Constructors Constructor Description DataCaptureScenario(Engine engine)
-
Method Summary
Modifier and Type Method Description final UnitsetCallback(DataCaptureScenario.Callback callback)Set the scenario callback. final UnitsetCloseListener(DataCaptureScenario.CloseListener closeListener)Set the scenario cancellation listener. final Unitstart()Start the scenario execution. final Unitstop()Stops automatic and manual capture and releases the resources. final UnitsetAutoCaptureEnabled(Boolean isEnabled)Enable the real-time capture from the camera preview. final BooleanisAutoCaptureEnabled()Check if the automatic capture is currently running final UnitpickImageFromGallery()Open image gallery view. final UnitcaptureDataManually()Start the data capture manually final UnitsetGalleryButtonEnabled(Boolean isEnabled)Enable the gallery button for user interaction. final BooleanisGalleryButtonEnabled()Check if the gallery button is enabled for user interaction. final UnitsetUISettings(DataCaptureScenario.UISettings uiSettings)Set the extra UI settings of the CaptureView final UnitsetNamedProperty(String name, Object value)Set the named extended property of the scenario. final ImageCaptureSettingsgetImageCaptureSettings()Get the settings for the image capture configuration. final DataCaptureScenario.DataCaptureSettingsgetDataCaptureSettings()Get the settings for the data capture configuration. -
-
Method Detail
-
setCallback
@MainThread() final Unit setCallback(DataCaptureScenario.Callback callback)
Set the scenario callback.
-
setCloseListener
@MainThread() final Unit setCloseListener(DataCaptureScenario.CloseListener closeListener)
Set the scenario cancellation listener.
-
setAutoCaptureEnabled
@MainThread() final Unit setAutoCaptureEnabled(Boolean isEnabled)
Enable the real-time capture from the camera preview. If the auto-capture mode is disabled, data should be captured manually.
- Parameters:
isEnabled- Set true to enable the automatic capture from the camera preview and false to enable manual capture mode.
-
isAutoCaptureEnabled
@MainThread() final Boolean isAutoCaptureEnabled()
Check if the automatic capture is currently running
-
pickImageFromGallery
@MainThread() final Unit pickImageFromGallery()
Open image gallery view. This method can be used for implementing your own gallery button.
-
captureDataManually
@MainThread() final Unit captureDataManually()
Start the data capture manually
-
setGalleryButtonEnabled
@MainThread() final Unit setGalleryButtonEnabled(Boolean isEnabled)
Enable the gallery button for user interaction.
- Parameters:
isEnabled- Set true to enable the button and false to disable it.
-
isGalleryButtonEnabled
@MainThread() final Boolean isGalleryButtonEnabled()
Check if the gallery button is enabled for user interaction.
-
setUISettings
@MainThread() final Unit setUISettings(DataCaptureScenario.UISettings uiSettings)
Set the extra UI settings of the CaptureView
-
setNamedProperty
@MainThread() final Unit setNamedProperty(String name, Object value)
Set the named extended property of the scenario.
- Parameters:
name- the name of the propertyvalue- the value of the property
-
getImageCaptureSettings
@MainThread() final ImageCaptureSettings getImageCaptureSettings()
Get the settings for the image capture configuration.
-
getDataCaptureSettings
@MainThread() final DataCaptureScenario.DataCaptureSettings getDataCaptureSettings()
Get the settings for the data capture configuration.
-
-
-
-