application(_:continue:restorationHandler:)
AppDelegate.reachfive().application(application, continue: userActivity, restorationHandler: restorationHandler)
Description
Allows ReachFive to handle user activity continuation such as handoffs, and more importantly, universal links.
This method is required by WeChat and by a custom provider whose callback arrives as a universal link (NSUserActivityTypeBrowsingWeb).
|
|
Call this method in response to the equivalent UIKit method application(:continue:restorationHandler:).
If your app uses scenes, forward scene(:continue:) here as well.
|
The method returns a Delivering an https URL into the app requires an |
Examples
import Reach5
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
return AppDelegate.reachfive().application(application, continue: userActivity, restorationHandler: restorationHandler)
}
}
Parameters
| Parameter | Description |
|---|---|
The UIKit Application instance. For more details, see Apple: UIApplication. |
|
The activity object containing the data associated with the task the user was performing. |
|
A block to execute if your app creates objects to perform the task the user was performing. |