public class

AddCustomEventAction

extends Action
java.lang.Object
   ↳ com.urbanairship.actions.Action
     ↳ com.urbanairship.actions.AddCustomEventAction

Class Overview

An action that adds a custom event.

Accepted situations: all

Accepted argument value - A map of fields for the custom event:

When a custom event action is triggered from a Message Center Rich Push Message, the interaction type and ID will automatically be filled for the message if they are left blank.

Result value: null

Default Registration Name: add_custom_event_action

Default Registration Predicate: Rejects SITUATION_PUSH_RECEIVED

Summary

Constants
String DEFAULT_REGISTRY_NAME Default registry name
[Expand]
Inherited Constants
From class com.urbanairship.actions.Action
Public Constructors
AddCustomEventAction()
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
From class com.urbanairship.actions.Action
From class java.lang.Object

Constants

public static final String DEFAULT_REGISTRY_NAME

Default registry name

Constant Value: "add_custom_event_action"

Public Constructors

public AddCustomEventAction ()

Public Methods

public boolean acceptsArguments (ActionArguments arguments)

Called before an action is performed to determine if the the action can accept the arguments.

Parameters
arguments The action arguments.
Returns
  • true if the action can perform with the arguments, otherwise false.

public ActionResult perform (ActionArguments arguments)

Performs the action.

Parameters
arguments The action arguments.
Returns
  • The result of the action.