mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Update documentation files
This commit is contained in:
@@ -262,6 +262,8 @@ inline fun onAppLifecycle(initiate: AppLifecycle.() -> Unit)
|
||||
|
||||
!> 在 `loadZygote` 中不会被装载,仅会在 `loadSystem`、`loadApp` 中装载。
|
||||
|
||||
!> 作为 Hook API 装载时请使用原生的 `Application` 实现生命周期监听。
|
||||
|
||||
### loadApp [method]
|
||||
|
||||
```kotlin
|
||||
|
@@ -202,6 +202,8 @@ open class PackageParam internal constructor(@PublishedApi internal var wrapper:
|
||||
* 监听当前 Hook APP 生命周期装载事件
|
||||
*
|
||||
* - ❗在 [loadZygote] 中不会被装载 - 仅会在 [loadSystem]、[loadApp] 中装载
|
||||
*
|
||||
* - ❗作为 Hook API 装载时请使用原生的 [Application] 实现生命周期监听
|
||||
* @param initiate 方法体
|
||||
*/
|
||||
inline fun onAppLifecycle(initiate: AppLifecycle.() -> Unit) = AppLifecycle().apply(initiate).build()
|
||||
|
Reference in New Issue
Block a user