Retrieve the user's shortcuts and make shortcut suggestions.
- iOS 12.0+
- Mac Catalyst 13.0+
- watchOS 5.0+
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
get. To retrieve a particular shortcut, use the
get 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
set, passing in a list of suggested shortcuts. The user views the suggestions under the Siri & Search section of the Settings app. For more information, see Suggesting Shortcuts to Users.