One Logo Pool Ball
AppIntents · IOS API REFERENCE

RelevantIntentManager

class · iOS 17.0+ · SDK 27.1

final class RelevantIntentManager

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.

Members (2)

method · iOS 17.0+

updateRelevantIntents

TypeScript
updateRelevantIntents(relevantIntents: Array<RelevantIntent>): Promise<void>
Swift declaration
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.

get · iOS 17.0+

shared

TypeScript
static get shared(): RelevantIntentManager
Swift declaration
static let shared: RelevantIntentManager

The shared instance of this class.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →