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
predicateOptional predicate.
blockThe 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?
View on GitHub