Registers the current user activity with the system
- iOS 8.2+
- watchOS 2.0–5.0Deprecated
The type of activity to be continued. The value is a developer-defined string in reverse-DNS format by convention, for example,
com. This parameter must not be
.my Company .my Editor .editing
nilor an empty string.
A URL containing the web page to load in a browser to continue the activity. The scheme of the URL must be
https. Any other scheme throws an exception.
Use this method to publish your app’s current activity so that it can be handled as needed. When calling this method, you must specify a value for the
user parameter, the
webpage parameter, or both. Call this method in the following situations:
In your glance interface controller, call this method and provide a
userdictionary with information about what the glance displays. If the user taps your glance, that contextual information passes to your app so it can configure its interface.
Call this method to register the current activity with Handoff. The system delivers the information to the user’s iPhone, which can propagate the Handoff information to the user’s other devices. For more information about supporting Handoff, see Handoff Programming Guide.
Call this method at any time during the execution of your interface controller’s code. The system takes the information you provide and stores it for delivery to the appropriate target.