Instance Method

initWithUserActivity:

Initializes a shortcut with the specified user activity.

Declaration

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

Parameters

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.