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.
-
queueExtension methodDefaults to the serial queue on which intent actions will be performed
Declaration
Swift
static var queue: DispatchQueue { get } -
defaultSessionExtension methodDefault session for Intent actions, so that they are all grouped easily
Declaration
Swift
static var defaultSession: ActionSession? { get }
View on GitHub
IntentBackgroundAction Protocol Reference