Class TextButtonMode
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TextButtonMode extends PreviewButton implements Parcelable
Configuration of the 'preview' button in 'text button mode'.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
_type
private String
accessibilityDescription
private StyledText
style
-
Constructor Summary
Constructors Constructor Description TextButtonMode(Map<String, Object> source)
TextButtonMode(JSONObject json)
TextButtonMode(String accessibilityDescription, StyledText style)
-
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 StyledText
getStyle()
Configuration of the text style for the 'preview' button. final Unit
setStyle(StyledText style)
Configuration of the text style for the 'preview' button. JSONObject
toJson()
final static TextButtonMode
default()
-
-
Constructor Detail
-
TextButtonMode
TextButtonMode(JSONObject json)
-
TextButtonMode
TextButtonMode(String accessibilityDescription, StyledText style)
-
-
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"
-
getStyle
final StyledText getStyle()
Configuration of the text style for the 'preview' button.
-
setStyle
final Unit setStyle(StyledText style)
Configuration of the text style for the 'preview' button.
-
toJson
JSONObject toJson()
-
default
final static TextButtonMode default()
-
-
-
-