mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-10 04:24:21 +08:00
Modify add "isOnFailureThrowToApp" param for onAppLifecycle function in PackageParam
This commit is contained in:
@@ -327,13 +327,17 @@ fun refreshModuleAppResources()
|
||||
## onAppLifecycle <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
inline fun onAppLifecycle(initiate: AppLifecycle.() -> Unit)
|
||||
inline fun onAppLifecycle(isOnFailureThrowToApp: Boolean, initiate: AppLifecycle.() -> Unit)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.0.88` `added`
|
||||
|
||||
`v1.1.5` `modified`
|
||||
|
||||
新增 `isOnFailureThrowToApp` 参数,可选择将异常在 (Xposed) 宿主环境打印而不是抛出给宿主
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 监听当前 Hook APP 生命周期装载事件。
|
||||
@@ -975,13 +979,17 @@ resources().hook {
|
||||
## AppLifecycle <span class="symbol">- class</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
inner class AppLifecycle internal constructor()
|
||||
inner class AppLifecycle internal constructor(private val isOnFailureThrowToApp: Boolean)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.0.88` `added`
|
||||
|
||||
`v1.1.5` `modified`
|
||||
|
||||
新增 `isOnFailureThrowToApp` 参数,可选择将异常在 (Xposed) 宿主环境打印而不是抛出给宿主
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 当前 Hook APP 的生命周期实例处理类。
|
||||
|
Reference in New Issue
Block a user