Class ShutterButton
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ShutterButton implements Parcelable
Configuration of the 'shutter' button.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanenabledInAutoSnappingModeprivate StringaccessibilityDescriptionprivate ScanbotColorouterColorprivate ScanbotColorinnerColor
-
Constructor Summary
Constructors Constructor Description ShutterButton(Map<String, Object> source)ShutterButton(JSONObject json)ShutterButton(Boolean enabledInAutoSnappingMode, String accessibilityDescription, ScanbotColor outerColor, ScanbotColor innerColor)
-
Method Summary
Modifier and Type Method Description final BooleangetEnabledInAutoSnappingMode()Determines if the 'shutter' button can be tapped to manually snap a document when 'auto snapping mode' is active. final UnitsetEnabledInAutoSnappingMode(Boolean enabledInAutoSnappingMode)Determines if the 'shutter' button can be tapped to manually snap a document when 'auto snapping mode' is active. final StringgetAccessibilityDescription()The text to be read when the 'shutter' button is selected via the accessibility mode. final UnitsetAccessibilityDescription(String accessibilityDescription)The text to be read when the 'shutter' button is selected via the accessibility mode. final ScanbotColorgetOuterColor()The outer color of the 'shutter' button. final UnitsetOuterColor(ScanbotColor outerColor)The outer color of the 'shutter' button. final ScanbotColorgetInnerColor()The inner color of the 'shutter' button. final UnitsetInnerColor(ScanbotColor innerColor)The inner color of the 'shutter' button. final JSONObjecttoJson(ToJsonConfiguration config)final ShutterButtonclone()final static ShutterButtondefault()-
-
Constructor Detail
-
ShutterButton
ShutterButton(JSONObject json)
-
ShutterButton
ShutterButton(Boolean enabledInAutoSnappingMode, String accessibilityDescription, ScanbotColor outerColor, ScanbotColor innerColor)
-
-
Method Detail
-
getEnabledInAutoSnappingMode
final Boolean getEnabledInAutoSnappingMode()
Determines if the 'shutter' button can be tapped to manually snap a document when 'auto snapping mode' is active.
Default is true
-
setEnabledInAutoSnappingMode
final Unit setEnabledInAutoSnappingMode(Boolean enabledInAutoSnappingMode)
Determines if the 'shutter' button can be tapped to manually snap a document when 'auto snapping mode' is active.
Default is true
-
getAccessibilityDescription
final String getAccessibilityDescription()
The text to be read when the 'shutter' button is selected via the accessibility mode.
Default is "?accessibilityDescriptionCameraShutterButton"
-
setAccessibilityDescription
final Unit setAccessibilityDescription(String accessibilityDescription)
The text to be read when the 'shutter' button is selected via the accessibility mode.
Default is "?accessibilityDescriptionCameraShutterButton"
-
getOuterColor
final ScanbotColor getOuterColor()
The outer color of the 'shutter' button.
Default is "?sbColorOnPrimary"
-
setOuterColor
final Unit setOuterColor(ScanbotColor outerColor)
The outer color of the 'shutter' button.
Default is "?sbColorOnPrimary"
-
getInnerColor
final ScanbotColor getInnerColor()
The inner color of the 'shutter' button.
Default is "?sbColorOnPrimary"
-
setInnerColor
final Unit setInnerColor(ScanbotColor innerColor)
The inner color of the 'shutter' button.
Default is "?sbColorOnPrimary"
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ShutterButton clone()
-
default
final static ShutterButton default()
-
-
-
-