A type you use to suggest app intents and their current relevance to a person.
Use the shared `RelevantIntentManager` object to specify the actions your app wants to
suggest and their current relevance. Register any relevant app intents at launch time and
any time the set of actions changes later. You can register multiple actions at once, and
the system uses the relevance factors for each one to determine when to suggest the action.
If you don’t have any current actions to suggest, register an empty set to prevent the system
from suggesting outdated actions.
You don’t create instances of this class yourself. Instead, use the object in the ``shared``
property to set the relevant intents for your entire app.
final func updateRelevantIntents(_ relevantIntents: [RelevantIntent]) async throws
Sets the relevant app intents for the system to suggest.
- 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.