Initializer

init(intent:)

Creates a shortcut with the specified intent.

Declaration

init?(intent: INIntent)

Parameters

intent

The intent to perform when invoking the shortcut. The intent must have a title and be a valid shortcut type.

Return Value

A new shortcut object if the specified intent is valid; otherwise, returns nil.

See Also

Creating a Shortcut

init(userActivity: NSUserActivity)

Creates a shortcut with the specified user activity.