Fix inner Hook not invoking and fix maybe created duplicate hook

This commit is contained in:
2022-05-16 03:57:46 +08:00
parent 144111115e
commit 3a1f6e6cb7
5 changed files with 70 additions and 11 deletions

View File

@@ -386,6 +386,20 @@ inline fun HookParam.constructor(initiate: ConstructorFinder.() -> Unit): Constr
> 使用当前 `hookClass` 查找并得到构造方法。
#### injectMember [method]
```kotlin
inline fun HookParam.injectMember(priority: Int, tag: String, initiate: MemberHookCreater.() -> Unit): MemberHookCreater.Result
```
**变更记录**
`v1.0.88` `新增`
**功能描述**
> 注入要 Hook 的方法、构造类 (嵌套 Hook)。
#### beforeHook [method]
```kotlin