Merge document file

This commit is contained in:
2022-04-13 13:44:58 +08:00
parent 2a070a351f
commit e745fcec29
4 changed files with 20 additions and 2 deletions

View File

@@ -22,6 +22,10 @@
- [点击这里](https://fankes.github.io/YukiHookAPI) 前往文档页面查看更多详细教程和内容。 - [点击这里](https://fankes.github.io/YukiHookAPI) 前往文档页面查看更多详细教程和内容。
> 你可能会遇到浏览器缓存造成文档不是最新版本的问题,若已经查看过一次文档,请手动在每个页面上刷新,以获取最新版本。
最新版本更新时间2022-04-13 13:43
## Contacts ## Contacts
- [点击加入 Telegram 群组](https://t.me/YukiHookAPI) - [点击加入 Telegram 群组](https://t.me/YukiHookAPI)

View File

@@ -12,6 +12,8 @@
- 方便移植 快速上手 - 方便移植 快速上手
<font size=3 style="opacity: 0.6">`更新时间 2022-04-13 13:43`</font>
[GitHub](https://github.com/fankes/YukiHookAPI) [GitHub](https://github.com/fankes/YukiHookAPI)
[Get Started](#介绍) [Get Started](#介绍)

View File

@@ -138,6 +138,7 @@ val instance = Test()
// 使用 YukiHookAPI 调用并执行 // 使用 YukiHookAPI 调用并执行
Test::class.java.method { Test::class.java.method {
name = "getName" name = "getName"
emptyParam()
returnType = StringType returnType = StringType
}.get(instance).string() // 得到方法的结果 }.get(instance).string() // 得到方法的结果
``` ```
@@ -152,6 +153,7 @@ val instance = Test()
// 使用 YukiHookAPI 调用并执行 // 使用 YukiHookAPI 调用并执行
Test::class.java.method { Test::class.java.method {
name = "getName" name = "getName"
emptyParam()
}.get(instance).string() // 得到方法的结果 }.get(instance).string() // 得到方法的结果
``` ```
@@ -217,6 +219,7 @@ Test::class.java.field {
```kotlin ```kotlin
Test::class.java.method { Test::class.java.method {
name = "init" name = "init"
emptyParam()
}.get().call() }.get().call()
``` ```
@@ -227,6 +230,7 @@ Test::class.java.method {
```kotlin ```kotlin
Test::class.java.method { Test::class.java.method {
name = "init" name = "init"
emptyParam()
modifiers { modifiers {
// 标识查询的这个方法需要是静态 // 标识查询的这个方法需要是静态
asStatic() asStatic()
@@ -336,6 +340,7 @@ instance.current {
// 执行 stop 方法 // 执行 stop 方法
method { method {
name = "stop" name = "stop"
emptyParam()
}.call() }.call()
// 得到 name // 得到 name
val name = method { name = "getName" }.string() val name = method { name = "getName" }.string()
@@ -435,6 +440,7 @@ val instance = Test()
// 使用 YukiHookAPI 调用并执行 // 使用 YukiHookAPI 调用并执行
Test::class.java.method { Test::class.java.method {
name = "doTask" name = "doTask"
emptyParam()
}.remedys { }.remedys {
method { method {
name = "doTask" name = "doTask"
@@ -495,6 +501,7 @@ val currentClass = if("com.demo.ATest".hasClass) classOf("com.demo.ATest") else
// 然后再查询这个方法并调用 // 然后再查询这个方法并调用
currentClass.method { currentClass.method {
name = "doTask" name = "doTask"
emptyParam()
}.get().call() }.get().call()
``` ```
@@ -507,6 +514,7 @@ currentClass.method {
```kotlin ```kotlin
VariousClass("com.demo.ATest", "com.demo.BTest").get().method { VariousClass("com.demo.ATest", "com.demo.BTest").get().method {
name = "doTask" name = "doTask"
emptyParam()
}.get().call() }.get().call()
``` ```

View File

@@ -9,7 +9,9 @@
<meta content="Description" name="description"> <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" <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
name="viewport"> 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"> <link href="//unpkg.com/docsify/lib/themes/vue.css" rel="stylesheet">
<script src="sw.js"></script> <script src="sw.js"></script>
</head> </head>
@@ -32,8 +34,10 @@
name: 'YukiHookAPI', name: 'YukiHookAPI',
repo: 'https://github.com/fankes/YukiHookAPI', repo: 'https://github.com/fankes/YukiHookAPI',
requestHeaders: { requestHeaders: {
'cache-control': 'max-age=0', 'Cache': 'no-cache',
'Cache-Control': 'no-cache, must-revalidate',
'Pragma': 'no-cache', 'Pragma': 'no-cache',
'Expires': '0',
'If-Modified-Since': 'Thu, 01 Jun 1970 00:00:00 GMT' 'If-Modified-Since': 'Thu, 01 Jun 1970 00:00:00 GMT'
}, },
homepage: 'guide/home.md', homepage: 'guide/home.md',