Class CroppingConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CroppingConfiguration implements Parcelable
Configuration of the standalone cropping screen.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringversionprivate Stringscreenprivate Palettepaletteprivate StringdocumentUuidprivate StringpageUuidprivate CroppingTextLocalizationlocalizationprivate CroppingAppearanceConfigurationappearanceprivate CroppingScreenConfigurationcroppingprivate DocumentAnalysisModedocumentAnalysisMode
-
Constructor Summary
Constructors Constructor Description CroppingConfiguration(Map<String, Object> source)CroppingConfiguration(JSONObject json)CroppingConfiguration(String version, String screen, Palette palette, String documentUuid, String pageUuid, CroppingTextLocalization localization, CroppingAppearanceConfiguration appearance, CroppingScreenConfiguration cropping, DocumentAnalysisMode documentAnalysisMode)
-
Method Summary
Modifier and Type Method Description final StringgetVersion()Version number of the configuration object. final UnitsetVersion(String version)Version number of the configuration object. final StringgetScreen()The configuration object should be applied for this screen. final UnitsetScreen(String screen)The configuration object should be applied for this screen. final PalettegetPalette()Define the screen's base color values from which other colors are derived. final UnitsetPalette(Palette palette)Define the screen's base color values from which other colors are derived. final StringgetDocumentUuid()The UUID of the document to be cropped. final UnitsetDocumentUuid(String documentUuid)The UUID of the document to be cropped. final StringgetPageUuid()The UUID of the page of the document to be cropped. final UnitsetPageUuid(String pageUuid)The UUID of the page of the document to be cropped. final CroppingTextLocalizationgetLocalization()Configuration of all the strings for the standalone cropping screen. final UnitsetLocalization(CroppingTextLocalization localization)Configuration of all the strings for the standalone cropping screen. final CroppingAppearanceConfigurationgetAppearance()Configuration of the general appearance for the cropping screen. final UnitsetAppearance(CroppingAppearanceConfiguration appearance)Configuration of the general appearance for the cropping screen. final CroppingScreenConfigurationgetCropping()Configuration of the cropping screen. final UnitsetCropping(CroppingScreenConfiguration cropping)Configuration of the cropping screen. final DocumentAnalysisModegetDocumentAnalysisMode()Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. final UnitsetDocumentAnalysisMode(DocumentAnalysisMode documentAnalysisMode)Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. final JSONObjecttoJson(ToJsonConfiguration config)final CroppingConfigurationclone()-
-
Constructor Detail
-
CroppingConfiguration
CroppingConfiguration(JSONObject json)
-
CroppingConfiguration
CroppingConfiguration(String version, String screen, Palette palette, String documentUuid, String pageUuid, CroppingTextLocalization localization, CroppingAppearanceConfiguration appearance, CroppingScreenConfiguration cropping, DocumentAnalysisMode documentAnalysisMode)
-
-
Method Detail
-
getVersion
final String getVersion()
Version number of the configuration object.
Default is "1.0"
-
setVersion
final Unit setVersion(String version)
Version number of the configuration object.
Default is "1.0"
-
getScreen
final String getScreen()
The configuration object should be applied for this screen.
Default is "CroppingConfiguration"
-
setScreen
final Unit setScreen(String screen)
The configuration object should be applied for this screen.
Default is "CroppingConfiguration"
-
getPalette
final Palette getPalette()
Define the screen's base color values from which other colors are derived.
-
setPalette
final Unit setPalette(Palette palette)
Define the screen's base color values from which other colors are derived.
-
getDocumentUuid
final String getDocumentUuid()
The UUID of the document to be cropped.
-
setDocumentUuid
final Unit setDocumentUuid(String documentUuid)
The UUID of the document to be cropped.
-
getPageUuid
final String getPageUuid()
The UUID of the page of the document to be cropped.
-
setPageUuid
final Unit setPageUuid(String pageUuid)
The UUID of the page of the document to be cropped.
-
getLocalization
final CroppingTextLocalization getLocalization()
Configuration of all the strings for the standalone cropping screen.
-
setLocalization
final Unit setLocalization(CroppingTextLocalization localization)
Configuration of all the strings for the standalone cropping screen.
-
getAppearance
final CroppingAppearanceConfiguration getAppearance()
Configuration of the general appearance for the cropping screen.
-
setAppearance
final Unit setAppearance(CroppingAppearanceConfiguration appearance)
Configuration of the general appearance for the cropping screen.
-
getCropping
final CroppingScreenConfiguration getCropping()
Configuration of the cropping screen.
-
setCropping
final Unit setCropping(CroppingScreenConfiguration cropping)
Configuration of the cropping screen.
-
getDocumentAnalysisMode
final DocumentAnalysisMode getDocumentAnalysisMode()
Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image.
Default is UNFILTERED_DOCUMENT
-
setDocumentAnalysisMode
final Unit setDocumentAnalysisMode(DocumentAnalysisMode documentAnalysisMode)
Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image.
Default is UNFILTERED_DOCUMENT
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final CroppingConfiguration clone()
-
-
-
-