Class PagePreviewMode
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PagePreviewMode extends PreviewButton implements Parcelable
Configuration of the 'preview' button in 'page preview mode'.
-
-
Field Summary
Fields Modifier and Type Field Description private final String_typeprivate StringaccessibilityDescriptionprivate ScanbotColorimagePlaceholderColorprivate BadgeStylepageCounter
-
Constructor Summary
Constructors Constructor Description PagePreviewMode(Map<String, Object> source)PagePreviewMode(JSONObject json)PagePreviewMode(String accessibilityDescription, ScanbotColor imagePlaceholderColor, BadgeStyle pageCounter)
-
Method Summary
Modifier and Type Method Description Stringget_type()final StringgetAccessibilityDescription()The text to be read when the 'preview' button is selected via the accessibility mode. final UnitsetAccessibilityDescription(String accessibilityDescription)The text to be read when the 'preview' button is selected via the accessibility mode. final ScanbotColorgetImagePlaceholderColor()The color of the image placeholder. final UnitsetImagePlaceholderColor(ScanbotColor imagePlaceholderColor)The color of the image placeholder. final BadgeStylegetPageCounter()Configuration of the page counter icon. final UnitsetPageCounter(BadgeStyle pageCounter)Configuration of the page counter icon. JSONObjecttoJson(ToJsonConfiguration config)PagePreviewModeclone()final static PagePreviewModedefault()-
-
Constructor Detail
-
PagePreviewMode
PagePreviewMode(JSONObject json)
-
PagePreviewMode
PagePreviewMode(String accessibilityDescription, ScanbotColor imagePlaceholderColor, BadgeStyle pageCounter)
-
-
Method Detail
-
getAccessibilityDescription
final String getAccessibilityDescription()
The text to be read when the 'preview' button is selected via the accessibility mode.
Default is "?accessibilityDescriptionCameraPreviewButton"
-
setAccessibilityDescription
final Unit setAccessibilityDescription(String accessibilityDescription)
The text to be read when the 'preview' button is selected via the accessibility mode.
Default is "?accessibilityDescriptionCameraPreviewButton"
-
getImagePlaceholderColor
final ScanbotColor getImagePlaceholderColor()
The color of the image placeholder.
Default is "?sbColorOnSurfaceVariant"
-
setImagePlaceholderColor
final Unit setImagePlaceholderColor(ScanbotColor imagePlaceholderColor)
The color of the image placeholder.
Default is "?sbColorOnSurfaceVariant"
-
getPageCounter
final BadgeStyle getPageCounter()
Configuration of the page counter icon.
-
setPageCounter
final Unit setPageCounter(BadgeStyle pageCounter)
Configuration of the page counter icon.
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
PagePreviewMode clone()
-
default
final static PagePreviewMode default()
-
-
-
-