INVoiceShortcutCenter
Retrieve the user’s shortcuts and make shortcut suggestions.
Declaration
class INVoiceShortcutCenterOverview
With Shortcut Center, your app can:
Retrieve shortcuts associated with your app that the user added to Siri.
Suggest shortcuts the user may want to add to Siri.
Before you can retrieve or suggest shortcuts, get a reference to the Shortcut Center from the shared class property.
To retrieve all shortcuts associated with your app, call getAllVoiceShortcuts(completion:). To retrieve a particular shortcut, use the getVoiceShortcut(with:completion:) method, passing in the shortcut’s identifier. These methods return shortcuts associated with your app that the user added to Siri using your app or the Settings app.
To suggest shortcuts for actions that the user hasn’t performed in your app but may want to add to Siri, call setShortcutSuggestions(_:), passing in a list of suggested shortcuts. The user views the suggestions in the Gallery of the Shortcuts app. For more information, see Offering Actions in the Shortcuts App.
Topics
Getting the Shortcut Center
Getting Shortcuts Added to Siri
Setting Suggested Shortcuts
See Also
Shortcuts and Donations
Offering Actions in the Shortcuts AppAdding User Interactivity with Siri Shortcuts and the Shortcuts AppDonating ShortcutsDeleting Donated ShortcutsSoup Chef: Accelerating App Interactions with ShortcutsSoup Chef with App Intents: Migrating custom intentsAdding Shortcuts for Wind DownINShortcutReferenceINInteractionINShortcutINVoiceShortcutINShortcutAvailabilityOptionsINShortcutReferenceINIntentDonationMetadataApple Watch support