Class LocalNotification.Action
- Enclosing class:
LocalNotification
LocalNotification#addInputAction(String, String, String, String).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()Returns the drawable resource name used for the action icon on Android, or null.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
Creates an action with an icon.
The icon is a platform resource NAME, not a numeric id (Codename One has no numeric resource ids). On Android it is the name of a drawable bundled in the
native/androidfolder (the build copies it intores/drawable), resolved at runtime by name; the file extension is optional and ignored. iOS notification action buttons do not display icons, so the value is ignored there.Parameters
-
id: the action id reported back when the user taps the action -
title: the button label -
icon: the drawable resource name for the action (Android only)
-
-
-
Method Details
-
getId
Returns the action id.
Returns
the action id
-
getTitle
Returns the button label.
Returns
the title
-
getIcon
Returns the drawable resource name used for the action icon on Android, or null. See
Action#Action(String, String, String)for how it is resolved.Returns
the drawable resource name, 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
-