public class PushAction extends Object
PushActionsProvider.getPushActionCategories()
implementation.Constructor and Description |
---|
PushAction(String title)
Creates a new push action
|
PushAction(String id,
String title)
Creates a new push action
|
PushAction(String id,
String title,
String icon)
Creates a new push action
|
PushAction(String id,
String title,
String icon,
String textInputPlaceholder,
String textInputButtonText)
Creates a new push action
|
Modifier and Type | Method and Description |
---|---|
String |
getIcon()
The icon of the action.
|
String |
getId()
Gets the ID of the action.
|
String |
getTextInputButtonText()
The button label for the "reply" button on the text input field.
|
String |
getTextInputPlaceholder()
The placeholder text to use for text input on this action.
|
String |
getTitle()
The title of the action.
|
public PushAction(String id, String title, String icon)
id
- The ID of the action. This is the id that will be available in PushContent.getActionId()
if the user
selected this action on the push notification.title
- The title of the action. This is the button label in the push notification.icon
- Icon for the action. Not supported currently on most platforms.public PushAction(String id, String title, String icon, String textInputPlaceholder, String textInputButtonText)
id
- The ID of the action. This is the id that will be available in PushContent.getActionId()
if the user
selected this action on the push notification.title
- The title of the action. This is the button label in the push notification.icon
- Icon for the action. Not supported currently on most platforms.textInputPlaceholder
- Placeholder text to use for the text input field.textInputButtonText
- Text to be used for the "reply" button in the text input field.public PushAction(String id, String title)
id
- The ID of the action. This is the id that will be available in PushContent.getActionId()
if the user
selected this action on the push notification.title
- The title of the action. This is the button label in the push notification.public PushAction(String title)
title
- The title and id of the action. This is the button label in the push notification.public String getId()
PushCallback.push(java.lang.String)
method via PushContent.getActionId()
if the user selects this action in a push notification.PushContent.getActionId()
public String getTitle()
public String getIcon()
public String getTextInputPlaceholder()
textInputButtonText
or textInputPlaceholder
must be non-null for the action to include a text input.public String getTextInputButtonText()
textInputButtonText
or textInputPlaceholder
must be non-null for the action to include a text input.