updateRelevantIntents(_:)
Sets the relevant app intents for the system to suggest.
Declaration
final func updateRelevantIntents(_ relevantIntents: [RelevantIntent]) async throwsDiscussion
Parameter
relevantIntents: The array of relevant intents that currently apply to your app. Specify an empty array if your app doesn’t have any intents to suggest.
Use this method to specify the complete set of relevant app intents for the system to consider. The system uses the relevance information in the RelevantIntent structure to determine when to suggest the action. This method runs asynchronously and throws an error if it’s unable to update the current set of intents.