mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 17:55:24 +08:00
Merge document file
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
|
||||
- [点击这里](https://fankes.github.io/YukiHookAPI) 前往文档页面查看更多详细教程和内容。
|
||||
|
||||
> 你可能会遇到浏览器缓存造成文档不是最新版本的问题,若已经查看过一次文档,请手动在每个页面上刷新,以获取最新版本。
|
||||
|
||||
最新版本更新时间:2022-04-13 13:43
|
||||
|
||||
## Contacts
|
||||
|
||||
- [点击加入 Telegram 群组](https://t.me/YukiHookAPI)
|
||||
|
@@ -12,6 +12,8 @@
|
||||
|
||||
- 方便移植 快速上手
|
||||
|
||||
<font size=3 style="opacity: 0.6">`更新时间 2022-04-13 13:43`</font>
|
||||
|
||||
[GitHub](https://github.com/fankes/YukiHookAPI)
|
||||
[Get Started](#介绍)
|
||||
|
||||
|
@@ -138,6 +138,7 @@ val instance = Test()
|
||||
// 使用 YukiHookAPI 调用并执行
|
||||
Test::class.java.method {
|
||||
name = "getName"
|
||||
emptyParam()
|
||||
returnType = StringType
|
||||
}.get(instance).string() // 得到方法的结果
|
||||
```
|
||||
@@ -152,6 +153,7 @@ val instance = Test()
|
||||
// 使用 YukiHookAPI 调用并执行
|
||||
Test::class.java.method {
|
||||
name = "getName"
|
||||
emptyParam()
|
||||
}.get(instance).string() // 得到方法的结果
|
||||
```
|
||||
|
||||
@@ -217,6 +219,7 @@ Test::class.java.field {
|
||||
```kotlin
|
||||
Test::class.java.method {
|
||||
name = "init"
|
||||
emptyParam()
|
||||
}.get().call()
|
||||
```
|
||||
|
||||
@@ -227,6 +230,7 @@ Test::class.java.method {
|
||||
```kotlin
|
||||
Test::class.java.method {
|
||||
name = "init"
|
||||
emptyParam()
|
||||
modifiers {
|
||||
// 标识查询的这个方法需要是静态
|
||||
asStatic()
|
||||
@@ -336,6 +340,7 @@ instance.current {
|
||||
// 执行 stop 方法
|
||||
method {
|
||||
name = "stop"
|
||||
emptyParam()
|
||||
}.call()
|
||||
// 得到 name
|
||||
val name = method { name = "getName" }.string()
|
||||
@@ -435,6 +440,7 @@ val instance = Test()
|
||||
// 使用 YukiHookAPI 调用并执行
|
||||
Test::class.java.method {
|
||||
name = "doTask"
|
||||
emptyParam()
|
||||
}.remedys {
|
||||
method {
|
||||
name = "doTask"
|
||||
@@ -495,6 +501,7 @@ val currentClass = if("com.demo.ATest".hasClass) classOf("com.demo.ATest") else
|
||||
// 然后再查询这个方法并调用
|
||||
currentClass.method {
|
||||
name = "doTask"
|
||||
emptyParam()
|
||||
}.get().call()
|
||||
```
|
||||
|
||||
@@ -507,6 +514,7 @@ currentClass.method {
|
||||
```kotlin
|
||||
VariousClass("com.demo.ATest", "com.demo.BTest").get().method {
|
||||
name = "doTask"
|
||||
emptyParam()
|
||||
}.get().call()
|
||||
```
|
||||
|
||||
|
@@ -9,7 +9,9 @@
|
||||
<meta content="Description" name="description">
|
||||
<meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
||||
name="viewport">
|
||||
<meta content="never" name="referrer">
|
||||
<meta http-equiv="pragram" content="no-cache" />
|
||||
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
|
||||
<meta http-equiv="expires" content="0" />
|
||||
<link href="//unpkg.com/docsify/lib/themes/vue.css" rel="stylesheet">
|
||||
<script src="sw.js"></script>
|
||||
</head>
|
||||
@@ -32,8 +34,10 @@
|
||||
name: 'YukiHookAPI',
|
||||
repo: 'https://github.com/fankes/YukiHookAPI',
|
||||
requestHeaders: {
|
||||
'cache-control': 'max-age=0',
|
||||
'Cache': 'no-cache',
|
||||
'Cache-Control': 'no-cache, must-revalidate',
|
||||
'Pragma': 'no-cache',
|
||||
'Expires': '0',
|
||||
'If-Modified-Since': 'Thu, 01 Jun 1970 00:00:00 GMT'
|
||||
},
|
||||
homepage: 'guide/home.md',
|
||||
|
Reference in New Issue
Block a user