Class CroppingJsonConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CroppingJsonConfiguration implements Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description private Stringversionprivate Stringscreenprivate StringcancelButtonTitleprivate StringhintTitleprivate JsonColorhintTitleColorprivate JsonColorbackgroundColorprivate StringrotateButtonTitleprivate StringresetButtonTitleprivate StringdetectButtonTitleprivate StringdoneButtonTitleprivate BooleanrotateButtonHiddenprivate BooleandetectResetButtonHiddenprivate JsonOrientationLockModeorientationLockModeprivate JsonColorpolygonColorprivate JsonColoranchorPointsColorprivate JsonColorpolygonColorMagneticprivate DoublepolygonLineWidthprivate JsonColortopBarBackgroundColorprivate JsonColortopBarButtonsActiveColorprivate JsonColorbottomBarBackgroundColorprivate JsonColorbottomBarButtonsColorprivate BooleanuseButtonsAllCapsprivate BooleanswapTopBottomButtonsprivate JsonCroppingAccessibilityConfigurationaccessibilityConfiguration
-
Constructor Summary
Constructors Constructor Description CroppingJsonConfiguration(String version, String screen, String cancelButtonTitle, String hintTitle, JsonColor hintTitleColor, JsonColor backgroundColor, String rotateButtonTitle, String resetButtonTitle, String detectButtonTitle, String doneButtonTitle, Boolean rotateButtonHidden, Boolean detectResetButtonHidden, JsonOrientationLockMode orientationLockMode, JsonColor polygonColor, JsonColor anchorPointsColor, JsonColor polygonColorMagnetic, Double polygonLineWidth, JsonColor topBarBackgroundColor, JsonColor topBarButtonsActiveColor, JsonColor bottomBarBackgroundColor, JsonColor bottomBarButtonsColor, Boolean useButtonsAllCaps, Boolean swapTopBottomButtons, JsonCroppingAccessibilityConfiguration accessibilityConfiguration)
-
Method Summary
Modifier and Type Method Description final StringgetVersion()A version of the configuration object final UnitsetVersion(String version)A version 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 StringgetCancelButtonTitle()Title of the cancel button. final UnitsetCancelButtonTitle(String cancelButtonTitle)Title of the cancel button. final StringgetHintTitle()Text of the edit screen hint. final UnitsetHintTitle(String hintTitle)Text of the edit screen hint. final JsonColorgetHintTitleColor()Color of the edit screen hint text. final UnitsetHintTitleColor(JsonColor hintTitleColor)Color of the edit screen hint text. final JsonColorgetBackgroundColor()Background color of the screen. final UnitsetBackgroundColor(JsonColor backgroundColor)Background color of the screen. final StringgetRotateButtonTitle()Title of the Rotate button. final UnitsetRotateButtonTitle(String rotateButtonTitle)Title of the Rotate button. final StringgetResetButtonTitle()Title of the Reset button. final UnitsetResetButtonTitle(String resetButtonTitle)Title of the Reset button. final StringgetDetectButtonTitle()Title of the Detect button. final UnitsetDetectButtonTitle(String detectButtonTitle)Title of the Detect button. final StringgetDoneButtonTitle()Title of the Done button. final UnitsetDoneButtonTitle(String doneButtonTitle)Title of the Done button. final BooleangetRotateButtonHidden()Changes the visibility of the Rotate button. final UnitsetRotateButtonHidden(Boolean rotateButtonHidden)Changes the visibility of the Rotate button. final BooleangetDetectResetButtonHidden()Changes the visibility of Detect and Reset buttons. final UnitsetDetectResetButtonHidden(Boolean detectResetButtonHidden)Changes the visibility of Detect and Reset buttons. final JsonOrientationLockModegetOrientationLockMode()UI Interface orientation lock mode final UnitsetOrientationLockMode(JsonOrientationLockMode orientationLockMode)UI Interface orientation lock mode final JsonColorgetPolygonColor()Default color of the cropping outline. final UnitsetPolygonColor(JsonColor polygonColor)Default color of the cropping outline. final JsonColorgetAnchorPointsColor()Default color of the cropping draggable elements. final UnitsetAnchorPointsColor(JsonColor anchorPointsColor)Default color of the cropping draggable elements. final JsonColorgetPolygonColorMagnetic()Outline color of magnetically snapped edges. final UnitsetPolygonColorMagnetic(JsonColor polygonColorMagnetic)Outline color of magnetically snapped edges. final DoublegetPolygonLineWidth()Width of the detected document outline. final UnitsetPolygonLineWidth(Double polygonLineWidth)Width of the detected document outline. final JsonColorgetTopBarBackgroundColor()The background color of the top toolbar. final UnitsetTopBarBackgroundColor(JsonColor topBarBackgroundColor)The background color of the top toolbar. final JsonColorgetTopBarButtonsActiveColor()The color of all active toggle buttons in the toolbar. final UnitsetTopBarButtonsActiveColor(JsonColor topBarButtonsActiveColor)The color of all active toggle buttons in the toolbar. final JsonColorgetBottomBarBackgroundColor()The background color of the bottom shutter-bar. final UnitsetBottomBarBackgroundColor(JsonColor bottomBarBackgroundColor)The background color of the bottom shutter-bar. final JsonColorgetBottomBarButtonsColor()The color of the title of all buttons in the bottom shutter-bar (Cancel button, etc.), as well as the camera permission prompt button. final UnitsetBottomBarButtonsColor(JsonColor bottomBarButtonsColor)The color of the title of all buttons in the bottom shutter-bar (Cancel button, etc.), as well as the camera permission prompt button. final BooleangetUseButtonsAllCaps()Controls whether buttons should use all capitals style, as defined by the Android Material Design. final UnitsetUseButtonsAllCaps(Boolean useButtonsAllCaps)Controls whether buttons should use all capitals style, as defined by the Android Material Design. final BooleangetSwapTopBottomButtons()Swap top and bottom buttons on the screen final UnitsetSwapTopBottomButtons(Boolean swapTopBottomButtons)Swap top and bottom buttons on the screen final JsonCroppingAccessibilityConfigurationgetAccessibilityConfiguration()Allows you to customize the accessibility configuration for the Cropping UI final UnitsetAccessibilityConfiguration(JsonCroppingAccessibilityConfiguration accessibilityConfiguration)Allows you to customize the accessibility configuration for the Cropping UI -
-
Constructor Detail
-
CroppingJsonConfiguration
CroppingJsonConfiguration(String version, String screen, String cancelButtonTitle, String hintTitle, JsonColor hintTitleColor, JsonColor backgroundColor, String rotateButtonTitle, String resetButtonTitle, String detectButtonTitle, String doneButtonTitle, Boolean rotateButtonHidden, Boolean detectResetButtonHidden, JsonOrientationLockMode orientationLockMode, JsonColor polygonColor, JsonColor anchorPointsColor, JsonColor polygonColorMagnetic, Double polygonLineWidth, JsonColor topBarBackgroundColor, JsonColor topBarButtonsActiveColor, JsonColor bottomBarBackgroundColor, JsonColor bottomBarButtonsColor, Boolean useButtonsAllCaps, Boolean swapTopBottomButtons, JsonCroppingAccessibilityConfiguration accessibilityConfiguration)
-
-
Method Detail
-
getVersion
final String getVersion()
A version of the configuration object
-
setVersion
final Unit setVersion(String version)
A version of the configuration object
-
setScreen
final Unit setScreen(String screen)
The configuration object should be applied for this screen
-
getCancelButtonTitle
final String getCancelButtonTitle()
Title of the cancel button.
-
setCancelButtonTitle
final Unit setCancelButtonTitle(String cancelButtonTitle)
Title of the cancel button.
-
getHintTitle
final String getHintTitle()
Text of the edit screen hint.
-
setHintTitle
final Unit setHintTitle(String hintTitle)
Text of the edit screen hint.
-
getHintTitleColor
final JsonColor getHintTitleColor()
Color of the edit screen hint text.
-
setHintTitleColor
final Unit setHintTitleColor(JsonColor hintTitleColor)
Color of the edit screen hint text.
-
getBackgroundColor
final JsonColor getBackgroundColor()
Background color of the screen.
-
setBackgroundColor
final Unit setBackgroundColor(JsonColor backgroundColor)
Background color of the screen.
-
getRotateButtonTitle
final String getRotateButtonTitle()
Title of the Rotate button.
-
setRotateButtonTitle
final Unit setRotateButtonTitle(String rotateButtonTitle)
Title of the Rotate button.
-
getResetButtonTitle
final String getResetButtonTitle()
Title of the Reset button.
-
setResetButtonTitle
final Unit setResetButtonTitle(String resetButtonTitle)
Title of the Reset button.
-
getDetectButtonTitle
final String getDetectButtonTitle()
Title of the Detect button.
-
setDetectButtonTitle
final Unit setDetectButtonTitle(String detectButtonTitle)
Title of the Detect button.
-
getDoneButtonTitle
final String getDoneButtonTitle()
Title of the Done button.
-
setDoneButtonTitle
final Unit setDoneButtonTitle(String doneButtonTitle)
Title of the Done button.
-
getRotateButtonHidden
final Boolean getRotateButtonHidden()
Changes the visibility of the Rotate button.
-
setRotateButtonHidden
final Unit setRotateButtonHidden(Boolean rotateButtonHidden)
Changes the visibility of the Rotate button.
-
getDetectResetButtonHidden
final Boolean getDetectResetButtonHidden()
Changes the visibility of Detect and Reset buttons.
-
setDetectResetButtonHidden
final Unit setDetectResetButtonHidden(Boolean detectResetButtonHidden)
Changes the visibility of Detect and Reset buttons.
-
getOrientationLockMode
final JsonOrientationLockMode getOrientationLockMode()
UI Interface orientation lock mode
-
setOrientationLockMode
final Unit setOrientationLockMode(JsonOrientationLockMode orientationLockMode)
UI Interface orientation lock mode
-
getPolygonColor
final JsonColor getPolygonColor()
Default color of the cropping outline.
-
setPolygonColor
final Unit setPolygonColor(JsonColor polygonColor)
Default color of the cropping outline.
-
getAnchorPointsColor
final JsonColor getAnchorPointsColor()
Default color of the cropping draggable elements.
-
setAnchorPointsColor
final Unit setAnchorPointsColor(JsonColor anchorPointsColor)
Default color of the cropping draggable elements.
-
getPolygonColorMagnetic
final JsonColor getPolygonColorMagnetic()
Outline color of magnetically snapped edges.
-
setPolygonColorMagnetic
final Unit setPolygonColorMagnetic(JsonColor polygonColorMagnetic)
Outline color of magnetically snapped edges.
-
getPolygonLineWidth
final Double getPolygonLineWidth()
Width of the detected document outline.
-
setPolygonLineWidth
final Unit setPolygonLineWidth(Double polygonLineWidth)
Width of the detected document outline.
-
getTopBarBackgroundColor
final JsonColor getTopBarBackgroundColor()
The background color of the top toolbar.
-
setTopBarBackgroundColor
final Unit setTopBarBackgroundColor(JsonColor topBarBackgroundColor)
The background color of the top toolbar.
-
getTopBarButtonsActiveColor
final JsonColor getTopBarButtonsActiveColor()
The color of all active toggle buttons in the toolbar.
-
setTopBarButtonsActiveColor
final Unit setTopBarButtonsActiveColor(JsonColor topBarButtonsActiveColor)
The color of all active toggle buttons in the toolbar.
-
getBottomBarBackgroundColor
final JsonColor getBottomBarBackgroundColor()
The background color of the bottom shutter-bar.
-
setBottomBarBackgroundColor
final Unit setBottomBarBackgroundColor(JsonColor bottomBarBackgroundColor)
The background color of the bottom shutter-bar.
-
getBottomBarButtonsColor
final JsonColor getBottomBarButtonsColor()
The color of the title of all buttons in the bottom shutter-bar (Cancel button, etc.), as well as the camera permission prompt button.
-
setBottomBarButtonsColor
final Unit setBottomBarButtonsColor(JsonColor bottomBarButtonsColor)
The color of the title of all buttons in the bottom shutter-bar (Cancel button, etc.), as well as the camera permission prompt button.
-
getUseButtonsAllCaps
final Boolean getUseButtonsAllCaps()
Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
-
setUseButtonsAllCaps
final Unit setUseButtonsAllCaps(Boolean useButtonsAllCaps)
Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
-
getSwapTopBottomButtons
final Boolean getSwapTopBottomButtons()
Swap top and bottom buttons on the screen
-
setSwapTopBottomButtons
final Unit setSwapTopBottomButtons(Boolean swapTopBottomButtons)
Swap top and bottom buttons on the screen
-
getAccessibilityConfiguration
final JsonCroppingAccessibilityConfiguration getAccessibilityConfiguration()
Allows you to customize the accessibility configuration for the Cropping UI
-
setAccessibilityConfiguration
final Unit setAccessibilityConfiguration(JsonCroppingAccessibilityConfiguration accessibilityConfiguration)
Allows you to customize the accessibility configuration for the Cropping UI
-
-
-
-