mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-07 19:14:08 +08:00
docs: update api-example, example, move-to-new-api, reflection
This commit is contained in:
@@ -1578,15 +1578,7 @@ For more functions, please refer to [VariousClass](../public/com/highcapable/yuk
|
||||
|
||||
If it is used when creating a Hook, it can be more convenient, and it can also automatically intercept the exception that `Class` cannot be found.
|
||||
|
||||
> The following example
|
||||
|
||||
```kotlin
|
||||
findClass("com.demo.ATest", "com.demo.BTest").hook {
|
||||
// Your code here.
|
||||
}
|
||||
```
|
||||
|
||||
You can also define this `Class` as a constant type to use.
|
||||
You can define this `Class` as a constant type to use.
|
||||
|
||||
> The following example
|
||||
|
||||
@@ -1599,12 +1591,6 @@ ABTestClass.hook {
|
||||
}
|
||||
```
|
||||
|
||||
::: tip
|
||||
|
||||
For more functions, please refer to the [PackageParam.findClass](../public/com/highcapable/yukihookapi/hook/param/PackageParam#findclass-method) method.
|
||||
|
||||
:::
|
||||
|
||||
### Calling Generics
|
||||
|
||||
In the process of reflection, we may encounter generic problems.
|
||||
|
Reference in New Issue
Block a user