IntentBackgroundAction

@available(iOS 12, *)
public protocol IntentBackgroundAction : Action

Actions that implement a Siri Intent must conform to this protocol.

It will ensure that they use a non-main queue (because Intent extensions are called on a background thread) and use an Intent-specific session for log and timeline scoping.

  • queue Extension method

    Defaults to the serial queue on which intent actions will be performed

    Declaration

    Swift

    static var queue: DispatchQueue { get }
  • defaultSession Extension method

    Default session for Intent actions, so that they are all grouped easily

    Declaration

    Swift

    static var defaultSession: ActionSession? { get }