public class IterableAction
extends java.lang.Object
IterableAction represents an action defined as a response to user events.
It is currently used in push notification actions (open push & action buttons).| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_TYPE_OPEN_URL
Open the URL or deep link
|
java.lang.String |
userInput
The text response typed by the user
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getData()
Additional data, its content depends on the action type
|
java.lang.String |
getType()
If
ACTION_TYPE_OPEN_URL, the SDK will call IterableUrlHandler and then try to
open the URL if the delegate returned `false` or was not set. |
boolean |
isOfType(java.lang.String type)
Checks whether this action is of a specific type
|
public static final java.lang.String ACTION_TYPE_OPEN_URL
@Nullable public java.lang.String userInput
@Nullable public java.lang.String getType()
ACTION_TYPE_OPEN_URL, the SDK will call IterableUrlHandler and then try to
open the URL if the delegate returned `false` or was not set.
For other types, IterableCustomActionHandler will be called.@Nullable public java.lang.String getData()
public boolean isOfType(@NonNull
java.lang.String type)
type - Action type to match against