callAsFunction(donate:)
Runs the intent’s action after resolving any parameters, and optionally donates the intent to the system.
Declaration
func callAsFunction(donate donateOnCompletion: Bool = true) async throws where Self.PerformResult.Value == NeverParameters
- donateOnCompletion:
trueif you want to donate the intent to the system after performing the action.
Discussion
Call this method when you want to perform the current app intent’s action. For example, you might call this method if you use app intents to implement your app’s underlying features. This method resolves the parameters of the intent and calls its perform() method.