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.

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