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.

Declaration

class INShortcutReference : NSObject

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.

Relationships

Inherits From

See Also

Using Reference Types

typealias INShortcut.ReferenceType

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software