AddCustomEventAction

class AddCustomEventAction(eventRecord: (CustomEvent) -> Unit = { Airship.analytics.recordCustomEvent(it) }) : Action(source)

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: DEFAULT_NAMES

Default Registration Predicate: Rejects Action.Situation.PUSH_RECEIVED

Constructors

Link copied to clipboard
constructor(eventRecord: (CustomEvent) -> Unit = { Airship.analytics.recordCustomEvent(it) })

Types

Link copied to clipboard
Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun acceptsArguments(arguments: ActionArguments): Boolean

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

Link copied to clipboard
open override fun perform(arguments: ActionArguments): ActionResult

Performs the action.

Inherited functions

Link copied to clipboard
open fun onFinish(arguments: ActionArguments, result: ActionResult)

Called after the action performs.

Link copied to clipboard
open fun onStart(arguments: ActionArguments)

Called before an action is performed.

Link copied to clipboard

Performs the action, with pre/post execution calls, if it accepts the provided arguments.

Link copied to clipboard

Determines which thread runs the action.