Package io.scanbot.sdk.ui_v2.common
Class PopupMenuItem
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PopupMenuItem implements Parcelable
Button configuration.
-
-
Field Summary
Fields Modifier and Type Field Description private StyledText
title
private String
accessibilityDescription
private IconStyle
icon
-
Constructor Summary
Constructors Constructor Description PopupMenuItem(Map<String, Object> source)
PopupMenuItem(JSONObject json)
PopupMenuItem(StyledText title, String accessibilityDescription, IconStyle icon)
-
Method Summary
Modifier and Type Method Description final StyledText
getTitle()
The text to be displayed on the button. final Unit
setTitle(StyledText title)
The text to be displayed on the button. final String
getAccessibilityDescription()
The text to be read when button is selected through accessibility mode. final Unit
setAccessibilityDescription(String accessibilityDescription)
The text to be read when button is selected through accessibility mode. final IconStyle
getIcon()
The style of the button's icon (icon, text). final Unit
setIcon(IconStyle icon)
The style of the button's icon (icon, text). final JSONObject
toJson()
final static PopupMenuItem
default()
-
-
Constructor Detail
-
PopupMenuItem
PopupMenuItem(JSONObject json)
-
PopupMenuItem
PopupMenuItem(StyledText title, String accessibilityDescription, IconStyle icon)
-
-
Method Detail
-
getTitle
final StyledText getTitle()
The text to be displayed on the button.
-
setTitle
final Unit setTitle(StyledText title)
The text to be displayed on the button.
-
getAccessibilityDescription
final String getAccessibilityDescription()
The text to be read when button is selected through accessibility mode. Default is ""
-
setAccessibilityDescription
final Unit setAccessibilityDescription(String accessibilityDescription)
The text to be read when button is selected through accessibility mode. Default is ""
-
toJson
final JSONObject toJson()
-
default
final static PopupMenuItem default()
-
-
-
-