# UTSiOSHookProxy

应用程序生命周期回调协议，此协议内的所有函数均由 app 调用，开发者可按需实现对应时机的回调函数。具体的使用方法[详见](https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#hooksclass)

## 应用程序生命周期回调函数


### onCreate()

<!-- UTSJSON.UTSiOSHookProxy.onCreate.description -->

<!-- UTSJSON.UTSiOSHookProxy.onCreate.param -->

<!-- UTSJSON.UTSiOSHookProxy.onCreate.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.onCreate.compatibility -->

### applicationDidFinishLaunchingWithOptions(application, launchOptions)

<!-- UTSJSON.UTSiOSHookProxy.applicationDidFinishLaunchingWithOptions.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidFinishLaunchingWithOptions.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidFinishLaunchingWithOptions.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidFinishLaunchingWithOptions.compatibility -->

### didRegisterForRemoteNotifications(deviceToken)

<!-- UTSJSON.UTSiOSHookProxy.didRegisterForRemoteNotifications.description -->

<!-- UTSJSON.UTSiOSHookProxy.didRegisterForRemoteNotifications.param -->

<!-- UTSJSON.UTSiOSHookProxy.didRegisterForRemoteNotifications.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.didRegisterForRemoteNotifications.compatibility -->

### didFailToRegisterForRemoteNotifications(error)

<!-- UTSJSON.UTSiOSHookProxy.didFailToRegisterForRemoteNotifications.description -->

<!-- UTSJSON.UTSiOSHookProxy.didFailToRegisterForRemoteNotifications.param -->

<!-- UTSJSON.UTSiOSHookProxy.didFailToRegisterForRemoteNotifications.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.didFailToRegisterForRemoteNotifications.compatibility -->

### didReceiveRemoteNotification(userInfo)

<!-- UTSJSON.UTSiOSHookProxy.didReceiveRemoteNotification.description -->

<!-- UTSJSON.UTSiOSHookProxy.didReceiveRemoteNotification.param -->

<!-- UTSJSON.UTSiOSHookProxy.didReceiveRemoteNotification.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.didReceiveRemoteNotification.compatibility -->

### didReceiveLocalNotification(notification)

<!-- UTSJSON.UTSiOSHookProxy.didReceiveLocalNotification.description -->

<!-- UTSJSON.UTSiOSHookProxy.didReceiveLocalNotification.param -->

<!-- UTSJSON.UTSiOSHookProxy.didReceiveLocalNotification.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.didReceiveLocalNotification.compatibility -->

### applicationHandleOpenURL(application, url)

<!-- UTSJSON.UTSiOSHookProxy.applicationHandleOpenURL.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationHandleOpenURL.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationHandleOpenURL.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationHandleOpenURL.compatibility -->

### applicationOpenURLOptions(app, url, options)

<!-- UTSJSON.UTSiOSHookProxy.applicationOpenURLOptions.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationOpenURLOptions.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationOpenURLOptions.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationOpenURLOptions.compatibility -->

### applicationWillResignActive(application)

<!-- UTSJSON.UTSiOSHookProxy.applicationWillResignActive.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationWillResignActive.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationWillResignActive.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationWillResignActive.compatibility -->

### applicationDidBecomeActive(application)

<!-- UTSJSON.UTSiOSHookProxy.applicationDidBecomeActive.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidBecomeActive.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidBecomeActive.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidBecomeActive.compatibility -->

### applicationDidEnterBackground(application)

<!-- UTSJSON.UTSiOSHookProxy.applicationDidEnterBackground.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidEnterBackground.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidEnterBackground.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationDidEnterBackground.compatibility -->

### applicationWillEnterForeground(application)

<!-- UTSJSON.UTSiOSHookProxy.applicationWillEnterForeground.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationWillEnterForeground.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationWillEnterForeground.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationWillEnterForeground.compatibility -->

### applicationMain(argc, argv)

<!-- UTSJSON.UTSiOSHookProxy.applicationMain.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationMain.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationMain.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationMain.compatibility -->

### applicationContinueUserActivityRestorationHandler(application, userActivity, restorationHandler)

<!-- UTSJSON.UTSiOSHookProxy.applicationContinueUserActivityRestorationHandler.description -->

<!-- UTSJSON.UTSiOSHookProxy.applicationContinueUserActivityRestorationHandler.param -->

<!-- UTSJSON.UTSiOSHookProxy.applicationContinueUserActivityRestorationHandler.returnValue -->

<!-- UTSJSON.UTSiOSHookProxy.applicationContinueUserActivityRestorationHandler.compatibility -->

<!-- UTSJSON.UTSiOSHookProxy.tutorial -->
