IntentValueQueryDefinition
A definition you use to create an intent value query for testing.
Declaration
struct IntentValueQueryDefinitionOverview
To create an intent value for testing and verify its results, first get its definition using IntentDefinitions and its valueQueries property. Then, perform the query and verify that it returns the expected results as shown in the following example:
let definitions = IntentDefinitions(
bundleIdentifier: "com.apple.example"
)
let searchQuery = definitions.valueQueries[
"LandmarkIntentValueQuery"
]
let result = try await searchQuery.values(for: "Arizona")
// Code to verify the query's results.
// ...