BlockAction
public final class BlockAction : AirshipAction
Action that runs a block.
-
Block action constructor.
Declaration
Swift
public init( predicate:(@Sendable(ActionArguments) async -> Bool)? = nil, block: @escaping @Sendable (ActionArguments) async throws -> AirshipJSON?)
Parameters
predicate
Optional predicate.
block
The action block.
-
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?