Class PushAction
PushActionsProvider#getPushActionCategories() implementation.-
Constructor Summary
ConstructorsConstructorDescriptionPushAction(String title) Creates a new push actionPushAction(String id, String title) Creates a new push actionPushAction(String id, String title, String icon) Creates a new push actionPushAction(String id, String title, String icon, String textInputPlaceholder, String textInputButtonText) Creates a new push action -
Method Summary
-
Constructor Details
-
PushAction
Creates a new push action
Parameters
-
id: @param id The ID of the action. This is the id that will be available inPushContent#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.
-
-
PushAction
public PushAction(String id, String title, String icon, String textInputPlaceholder, String textInputButtonText) Creates a new push action
Parameters
-
id: @param id The ID of the action. This is the id that will be available inPushContent#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.
-
-
PushAction
Creates a new push action
Parameters
-
id: @param id The ID of the action. This is the id that will be available inPushContent#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.
-
-
PushAction
Creates a new push action
Parameters
title: The title and id of the action. This is the button label in the push notification.
-
-
Method Details
-
getId
Gets the ID of the action. This is the value that will be made available inside the
PushCallback#push(java.lang.String)method viaPushContent#getActionId()if the user selects this action in a push notification.Returns
the id The ID of the action.
See also
- PushContent#getActionId()
-
getTitle
The title of the action. This will be the label for the action's button in the push notification.
Returns
the title The title of the action.
-
getIcon
The icon of the action. Not supported yet on most platforms.
Returns
the icon The icon for the action.
-
getTextInputPlaceholder
The placeholder text to use for text input on this action. Either
#textInputButtonTextor#textInputPlaceholdermust be non-null for the action to include a text input.Returns
the textInputPlaceholder
-
getTextInputButtonText
The button label for the "reply" button on the text input field. Either
#textInputButtonTextor#textInputPlaceholdermust be non-null for the action to include a text input.Returns
the textInputButtonText
-