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
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-