Instance Method

application(_:willContinueUserActivityWithType:)

Tells the delegate if your app takes responsibility for notifying users when a continuation activity takes longer than expected.

Declaration

optional func application(_ application: UIApplication, willContinueUserActivityWithType userActivityType: String) -> Bool

Parameters

application

Your shared app object.

userActivityType

The requested activity type.

Return Value

true if you want to notify the user that a continuation is in progress or false if you want iOS to notify the user.

Discussion

Use this method to provide immediate feedback to the user that an activity is about to continue on this device. The app calls this method as soon as the user confirms that an activity should be continued but possibly before the data associated with that activity is available.

Your implementation of this method should prepare to initiate the activity. If you notify the user as part of your preparations, return true from this method so that iOS does not also notify the user. If you do not implement this method or your implementation returns false, iOS notifes the user.

This method is not called if either application(_:willFinishLaunchingWithOptions:) or application(_:didFinishLaunchingWithOptions:) returns false.