Contents

makeIntent

Creates a populated instance of this intent.

Declaration

var makeIntent: IntentValuePropertiesCallable<AnyAppIntent> { get }

Mentioned in

Discussion

The following example shows how you can create an intent instance:

let definitions = IntentDefinitions(bundleIdentifier: "com.example.exampleapp")
let exampleIntentDefinition = definitions.intents["MyExampleIntent"]

let intent = exampleIntentDefinition.makeIntent(
    paramA: "Hello World",
    paramB: 1234
)