java.lang.Object | ||
↳ | com.urbanairship.actions.Action | |
↳ | com.urbanairship.actions.ToastAction |
An action that displays text in a toast.
Accepted situations: Situation.PUSH_OPENED, Situation.WEB_VIEW_INVOCATION, Situation.MANUAL_INVOCATION, Situation.BACKGROUND_NOTIFICATION_ACTION_BUTTON, and Situation.FOREGROUND_NOTIFICATION_ACTION_BUTTON. Accepted argument value - A string with the toast text or a map with:LENGTH_KEY
: int either LENGTH_LONG
or LENGTH_SHORT
, OptionalTEXT_KEY
: String, RequiredConstants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_REGISTRY_NAME | Default registry name | |||||||||
String | LENGTH_KEY | Key to define the Toast's length when providing the action's value as a map. | |||||||||
String | TEXT_KEY | Key to define the Toast's text when providing the action's value as a map. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ToastAction() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
acceptsArguments(ActionArguments arguments)
Called before an action is performed to determine if the
the action can accept the arguments.
| ||||||||||
ActionResult |
perform(ActionArguments arguments)
Performs the action.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default registry name
Key to define the Toast's length when providing the action's value as a map.
Key to define the Toast's text when providing the action's value as a map.
Called before an action is performed to determine if the the action can accept the arguments.
arguments | The action arguments. |
---|
true
if the action can perform with the arguments,
otherwise false
.
Performs the action.
arguments | The action arguments. |
---|