ActionRunner
@objc(UAActionRunner)
public final class ActionRunner : NSObject
A helper class for running actions by name or by reference.
-
run(action:
Asynchronousarguments: ) Runs an action
Declaration
Swift
public class func run( action: AirshipAction, arguments: ActionArguments ) async -> ActionResult
Parameters
action
The action to run
arguments
The action’s arguments
-
run(actionName:
Asynchronousarguments: ) Runs an action
Declaration
Swift
public class func run( actionName: String, arguments: ActionArguments ) async -> ActionResult
Parameters
actionName
The name of the action
arguments
The action’s arguments
-
run(actionsPayload:
Asynchronoussituation: metadata: ) Runs an action
Declaration
Swift
@discardableResult public class func run( actionsPayload: AirshipJSON, situation: ActionSituation, metadata: [String: Sendable] ) async -> [String: ActionResult]
Parameters
actionsPayload
A map of action name to action value.
situation
The action’s situation
metadata
The action’s metadata