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. Currently, this method is only used by WeChat.
Call this to enable the SDK to process activities passed to the app, such as restoring state from another device.
Call this method in response to the equivalent UIKit method application(_:continue:restorationHandler:)
.
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. |