Enumeration

INShortcut

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

Declaration

enum INShortcut

Topics

Creating a Shortcut

init?(intent: INIntent)

Creates a shortcut with the specified intent.

init(userActivity: NSUserActivity)

Creates a shortcut with the specified user activity.

Getting the Intent

var intent: INIntent?

The intent that performs the action when invoking the shortcut.

Getting the User Activity

var userActivity: NSUserActivity?

The user activity that defines the action to perform when invoking the shortcut.

Comparing Shortcuts

static func != (INShortcut, INShortcut) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Describing Shortcuts

var debugDescription: String

A textual description of the shortcut suitable for debugging.

var description: String

A textual description of the shortcut.

func hash(into: inout Hasher)

The computed hash value of the shortcut.

Using Reference Types

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.

typealias INShortcut.ReferenceType

An alias for this value type's equivalent reference type.

Enumeration Cases

case intent(INIntent)

The intent that performs the action when invoking the shortcut.

case userActivity(NSUserActivity)

The user activity that defines the action to perform when invoking the shortcut.

See Also

Shortcuts

Donating Shortcuts

Tell Siri about shortcuts to actions that the user performed in your app.

Deleting Donated Shortcuts

Remove your donations from Siri.

Soup Chef: Accelerating App Interactions with Shortcuts

Make it easy for people to use Siri with your app by providing shortcuts to your app’s actions.

Shortcut Management

Enable users to add shortcuts to Siri, and have your app suggest shortcuts to users.

Relevant Shortcuts

Display shortcuts on the Siri watch face.

Media Intent Shortcuts

Provide a convenient way for users to listen to and watch media content from your app with shortcuts.

class INInteraction

An interaction between the user and your app involving an intent object.

class INObject

An object that represents a custom intent parameter.