ActionRunner
public final class ActionRunner
A helper class for running actions by name or by reference.
-
run(action:Asynchronousarguments: ) Runs an action
Declaration
Swift
public class func run( action: any AirshipAction, arguments: ActionArguments ) async -> ActionResultParameters
actionThe action to run
argumentsThe action’s arguments
-
run(actionName:Asynchronousarguments: ) Runs an action
Declaration
Swift
public class func run( actionName: String, arguments: ActionArguments ) async -> ActionResultParameters
actionNameThe name of the action
argumentsThe action’s arguments
-
run(actionsPayload:Asynchronoussituation: metadata: ) Runs an action
Declaration
Swift
@discardableResult public class func run( actionsPayload: AirshipJSON, situation: ActionSituation, metadata: [String: any Sendable] ) async -> [String: ActionResult]Parameters
actionsPayloadA map of action name to action value.
situationThe action’s situation
metadataThe action’s metadata
View on GitHub