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
_type
private String
accessibilityDescription
private ScanbotColor
imagePlaceholderColor
private BadgeStyle
pageCounter
-
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 String
get_type()
final String
getAccessibilityDescription()
The text to be read when the 'preview' button is selected via the accessibility mode. final Unit
setAccessibilityDescription(String accessibilityDescription)
The text to be read when the 'preview' button is selected via the accessibility mode. final ScanbotColor
getImagePlaceholderColor()
The color of the image placeholder. final Unit
setImagePlaceholderColor(ScanbotColor imagePlaceholderColor)
The color of the image placeholder. final BadgeStyle
getPageCounter()
Configuration of the page counter icon. final Unit
setPageCounter(BadgeStyle pageCounter)
Configuration of the page counter icon. JSONObject
toJson()
final static PagePreviewMode
default()
-
-
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()
-
default
final static PagePreviewMode default()
-
-
-
-