Instance Method

initWithIntent:

Initializes a shortcut with the specified intent.

Declaration

- (instancetype)initWithIntent:(INIntent *)intent;

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

- initWithUserActivity:

Initializes a shortcut with the specified user activity.