application(_:didFailToContinueUserActivityWithType:error:)
Tells the delegate that the app couldn’t continue the specified activity.
Declaration
@MainActor optional func application(_ application: NSApplication, didFailToContinueUserActivityWithType userActivityType: String, error: any 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.