AddCustomEventAction
public final class AddCustomEventAction : AirshipAction
An action that adds a custom event.
Expected argument values: A dictionary of keys 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.
Valid situations: All.
Result value: nil
-
Default names - “add_custom_event_action”
Declaration
Swift
public static let defaultNames: [String]
-
Default predicate - rejects foreground pushes with visible display options and
ActionSituation.backgroundPush
Declaration
Swift
public static let defaultPredicate: @Sendable (ActionArguments) -> Bool
-
accepts(arguments:
Asynchronous) Declaration
Swift
public func accepts(arguments: ActionArguments) async -> Bool
-
perform(arguments:
Asynchronous) Declaration
Swift
public func perform(arguments: ActionArguments) async throws -> AirshipJSON?