Class LocalNotification.Action
java.lang.Object
com.codename1.notifications.LocalNotification.Action
- Enclosing class:
LocalNotification
A single action button attached to a local notification. An action may optionally
include an inline text input (quick reply) by setting a placeholder and reply
button text via
LocalNotification#addInputAction(String, String, String, String).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()Returns the icon name.getId()Returns the action id.Returns the label of the reply button for the inline text input, or null when the action has no text input.Returns the placeholder text for the inline text input, or null when the action has no text input.getTitle()Returns the button label.booleanReturns true if this action has an inline text input (quick reply).
-
Constructor Details
-
Action
-
Action
-
-
Method Details
-
getId
Returns the action id.
Returns
the action id
-
getTitle
Returns the button label.
Returns
the title
-
getIcon
Returns the icon name.
Returns
the icon, or null
-
getTextInputPlaceholder
Returns the placeholder text for the inline text input, or null when the action has no text input.
Returns
the text input placeholder, or null
-
getTextInputButtonText
Returns the label of the reply button for the inline text input, or null when the action has no text input.
Returns
the reply button text, or null
-
isTextInput
public boolean isTextInput()Returns true if this action has an inline text input (quick reply).
Returns
true if this is a text input action
-