Class

INVoiceShortcutCenter

Retrieve the user's shortcuts and make shortcut suggestions.

Declaration

@interface INVoiceShortcutCenter : NSObject

Overview

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 sharedCenter class property.

To retrieve all shortcuts associated with your app, call getAllVoiceShortcutsWithCompletion:. To retrieve a particular shortcut, use the getVoiceShortcutWithIdentifier: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 under the Siri & Search section of the Settings app. For more information, see Suggesting Shortcuts to Users.

Topics

Getting the Shortcut Center

sharedCenter

The shared shortcut center.

Getting Shortcuts Added to Siri

- getAllVoiceShortcutsWithCompletion:

Retrieves all shortcuts added to Siri for your app.

- getVoiceShortcutWithIdentifier:completion:

Retrieves a shortcut the user added to Siri.

Setting Suggested Shortcuts

- setShortcutSuggestions:

Suggest shortcuts the user may want to add to Siri.

INShortcut

An object representing an action available in your app that the system may suggest to a user or a user may add to Siri.

Relationships

Inherits From

See Also

Manage Shortcuts

INVoiceShortcut

A shortcut the user added to Siri.