CroppingConfiguration

Class which is used to configure io.scanbot.sdk.ui.view.edit.CroppingActivity Contains settings indicating views Behaviour, Texts and Appearance

Constructors

Link copied to clipboard
constructor(page: Page)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val page: Page
Link copied to clipboard

Functions

Link copied to clipboard

A configuration with accessibility texts settings.

Link copied to clipboard

Default color of the cropping draggable elements.

Link copied to clipboard

Background color of the main screen.

Link copied to clipboard

Background color of the bottom toolbar.

Link copied to clipboard

Color of the titles of all buttons in the bottom toolbar (Rotate button).

Link copied to clipboard

Title of the cancel button.

Link copied to clipboard

Title of the Detect button.

Link copied to clipboard
fun setDetectResetButtonHidden(detectResetButtonHidden: Boolean)

Changes the visibility of Detect and Reset buttons.

Link copied to clipboard

Title of the Done button.

Link copied to clipboard
fun setHintTitle(text: String)

Text of the edit screen hint.

Link copied to clipboard

Color of the edit screen hint text.

Link copied to clipboard

Orientation lock mode of the cropping screen: PORTRAIT or LANDSCAPE. By default the screen orientation is not locked.

Link copied to clipboard
fun setPolygonColor(color: Int)

Default color of the cropping outline.

Link copied to clipboard

Outline color of magnetically snapped edges.

Link copied to clipboard

Width of the cropping outline in Px.

Link copied to clipboard

Title of the Reset button.

Link copied to clipboard
fun setRotateButtonHidden(rotateButtonHidden: Boolean)

Changes the visibility of the Rotate button.

Link copied to clipboard

Title of the Rotate button.

Link copied to clipboard

Swap top and bottom buttons on the screen.

Link copied to clipboard

Background color of the top toolbar.

Link copied to clipboard

Color of the titles of all buttons in the top toolbar (Cancel and Done buttons).

Link copied to clipboard

Controls whether buttons should use all capitals style.