CancelSchedulesAction

public final class CancelSchedulesAction : AirshipAction

Action to cancel automation schedules.

This action is registered under the names cancel_scheduled_actions and ^csa.

Expected argument values: String with the value “all” or a Dictionary with:

  • “groups”: A schedule group or an array of schedule groups.
  • “ids”: A schedule ID or an array of schedule IDs.

Valid situations: ActionSituation.backgroundPush, .foregroundPush, .webViewInvocation, .manualInvocation, and .automation

Result value: nil.

  • Cancel schedules action names.

    Declaration

    Swift

    public static let defaultNames: [String]
  • 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?