Instance Method


Initializes a shortcut with the specified user activity.


- (instancetype)initWithUserActivity:(NSUserActivity *)userActivity;



The user activity indicating the action to perform when invoking the shortcut.

Return Value

A new shortcut object initialized with the specified user activitiy.

See Also

Creating a Shortcut

- initWithIntent:

Initializes a shortcut with the specified intent.

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