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


class INShortcutReference : NSObject


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.


Inherits From

See Also

Using Reference Types

typealias INShortcut.ReferenceType

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