Class

INVoiceShortcutCenter

Retrieve the user's shortcuts and make shortcut suggestions.

Declaration

class 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 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 under the Siri & Search section of the Settings app. For more information, see Suggesting Shortcuts to Users.

Topics

Getting the Shortcut Center

class var shared: INVoiceShortcutCenter

The shared shortcut center.

Getting Shortcuts Added to Siri

Setting Suggested Shortcuts

func setShortcutSuggestions([INShortcut])

Suggest shortcuts the user may want to add to Siri.

class INShortcutReference

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

Conforms To

See Also

Manage Shortcuts

class INVoiceShortcut

A shortcut the user added to Siri.