java.lang.Object | ||
↳ | com.urbanairship.actions.Action | |
↳ | com.urbanairship.actions.tags.AddTagsAction |
An action that adds tags.
Accepted situations: all
Accepted argument value types: A string for a single tag, a Collection of Strings for multiple tags, or a JSON payload for tag groups. An example JSON payload:
{ "channel": { "channel_tag_group": ["channel_tag_1", "channel_tag_2"], "other_channel_tag_group": ["other_channel_tag_1"] }, "named_user": { "named_user_tag_group": ["named_user_tag_1", "named_user_tag_2"], "other_named_user_tag_group": ["other_named_user_tag_1"] }, "device": ["tag 1", "tag 2"] }
Result value: null
Default Registration Names: ^+t, add_tags_action
Default Registration Predicate: Rejects SITUATION_PUSH_RECEIVED
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | AddTagsAction.AddTagsPredicate | Default AddTagsAction predicate. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_REGISTRY_NAME | Default registry name | |||||||||
String | DEFAULT_REGISTRY_SHORT_NAME | Default registry short name |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.actions.Action
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AddTagsAction() |
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.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AirshipChannel |
getChannel()
Gets the channel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.actions.Action
| |||||||||||
From class
java.lang.Object
|
Default registry name
Default registry short name
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. |
---|
Gets the channel.