Instance Method

application:willContinueUserActivityWithType:

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

Declaration

- (BOOL)application:(UIApplication *)application willContinueUserActivityWithType:(NSString *)userActivityType;

Parameters

application

Your shared app object.

userActivityType

The requested activity type.

Return Value

YES if you want to notify the user that a continuation is in progress or NO 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 YES from this method so that iOS does not also notify the user. If you do not implement this method or your implementation returns NO, iOS notifes the user.

This method is not called if either application:willFinishLaunchingWithOptions: or application:didFinishLaunchingWithOptions: returns NO.

See Also

Continuing User Activity and Handling Quick Actions

- application:continueUserActivity:restorationHandler:

Tells the delegate that the data for continuing an activity is available.

- application:didUpdateUserActivity:

Tells the delegate that the activity was updated.

- application:didFailToContinueUserActivityWithType:error:

Tells the delegate that the activity could not be continued.

- application:performActionForShortcutItem:completionHandler:

Called when the user selects a Home screen quick action for your app, except when you’ve intercepted the interaction in a launch method.

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