Instance Method

application(_:didFailToContinueUserActivityWithType:error:)

Tells the delegate that the activity could not be continued.

Declaration

optional func application(_ application: NSApplication, didFailToContinueUserActivityWithType userActivityType: String, error: Error)

Parameters

application

The app that attempted to continue the activity.

userActivityType

The activity type that was attempted.

error

An error object indicating the reason for the failure.

Discussion

Use this method to let the user know that the specified activity could not be continued. If you do not implement this method, AppKit displays an error to the user with an appropriate message about the reason for the failure.

See Also

Continuing User Activities

func application(NSApplication, willContinueUserActivityWithType: String) -> Bool

Tells the delegate the user wants to continue an activity in your app.

func application(NSApplication, didUpdate: NSUserActivity)

Tells the delegate that the user activity object has been updated.