docs(style): optimize symbols

This commit is contained in:
2023-09-23 12:49:35 +08:00
parent 24412eea84
commit 1f1a0b6c11
36 changed files with 70 additions and 70 deletions

View File

@@ -608,7 +608,7 @@ For more functions, please refer to [PackageParam.withProcess](../api/public/com
## Writing Optimization
To make the code more concise, you can omit the name of `YukiHookAPI` and write your `onHook` entry as `lambda`.
To make the code more concise, you can omit the name of `YukiHookAPI` and write your `onHook` entry as **lambda**.
> The following example

View File

@@ -4,7 +4,7 @@
## Background
This is an efficient Hook API rebuilt based on the Xposed API using `Kotlin`, and creates rich function extensions for the development of Xposed Modules.
This is an efficient Hook API rebuilt based on the Xposed API using Kotlin, and creates rich function extensions for the development of Xposed Modules.
The name is taken from ["ももくり" heroine Yuki Kurihara](https://www.bilibili.com/bangumi/play/ss5016).
@@ -12,15 +12,15 @@ Formerly the Innocent Xposed API used in [Development Learning Project](https://
## Usage
`YukiHookAPI` is built entirely with `Kotlin` `lambda` syntax.
`YukiHookAPI` is built entirely with Kotlin **lambda** syntax.
Abandoning the original less friendly `XposedHelpers`, you can use it to easily create Xposed Modules and easily implement custom Hook API.
## Language Requirement
Please use `Kotlin`, the framework part of the code composition is also compatible with `Java` but the implementation of the basic Hook scene **may not work at all**.
Please use Kotlin, the framework part of the code composition is also compatible with Java but the implementation of the basic Hook scene **may not work at all**.
All demo code in this document will be described using `Kotlin`, if you don't know how to use `Kotlin` then you may not be able to use `YukiHookAPI`.
All demo code in this document will be described using Kotlin, if you don't know how to use Kotlin then you may not be able to use `YukiHookAPI`.
Part of the Java Demo code can be found [here](https://github.com/fankes/YukiHookAPI/tree/master/samples/demo-module/src/main/java/com/highcapable/yukihookapi/demo_module/hook/java), but not recommended.
@@ -30,7 +30,7 @@ Previously, when we built an Xposed Module, we first needed to create an `xposed
Then, manually fill in your own entry class name into the file and use `XposedHelpers` to implement our Hook logic.
Since `Kotlin` is the main Android development language, this API is really not very elegant to use.
Since Kotlin is the main Android development language, this API is really not very elegant to use.
Is there any **easy to use, light, elegant** solution?
@@ -38,7 +38,7 @@ With this idea, `YukiHookAPI` was born.
Now, we only need to write a small amount of code, and all the time and expense are handed over to automation.
With `Kotlin`'s elegant `lambda` writing and `YukiHookAPI`, you can make your Hook logic more beautiful and clear.
With Kotlin's elegant **lambda** writing and `YukiHookAPI`, you can make your Hook logic more beautiful and clear.
> The following example

View File

@@ -66,7 +66,7 @@ The Root-free frameworks mentioned above are [LSPatch](https://github.com/LSPose
### What YukiHookAPI does
Since Xposed appeared until now, apart from `XposedHelpers`, which is well known to developers, there is still no set of syntactic sugar for `Kotlin` and API with complete usage encapsulation.
Since Xposed appeared until now, apart from `XposedHelpers`, which is well known to developers, there is still no set of syntactic sugar for Kotlin and API with complete usage encapsulation.
The birth of this API framework is to hope that in the current era of Xposed, more capable Xposed Module developers can avoid detours and complete the entire development process more easily and simply.

View File

@@ -10,7 +10,7 @@ This document can help you quickly migrate from the Hook APIs you are familiar w
> Migrated from `XC_LoadPackage.LoadPackageParam` to `PackageParam`.
`YukiHookAPI` implements the `lambda` method body `this` usage for `PackageParam`, and the `PackageParam` object can be obtained globally in the `encase` method body.
`YukiHookAPI` implements the **lambda** method body `this` usage for `PackageParam`, and the `PackageParam` object can be obtained globally in the `encase` method body.
> The API function differences are compared as follows
@@ -107,7 +107,7 @@ override fun handleInitPackageResources(resparam: XC_InitPackageResources.InitPa
#### Before/After Hook
`YukiHookAPI` also implements the `lambda` method body `this` usage for `HookParam`, and the `HookParam` object can be obtained globally in the method bodies such as `beforeHook` and `afterHook`.
`YukiHookAPI` also implements the **lambda** method body `this` usage for `HookParam`, and the `HookParam` object can be obtained globally in the method bodies such as `beforeHook` and `afterHook`.
> The API function differences are compared as follows

View File

@@ -30,7 +30,7 @@ If you don't want to use automated build tools, you can still manually configure
### Create Project
Use `Android Studio` or `IntelliJ IDEA` to create a new Android project and select `Kotlin` in the `Language` column to automatically add basic dependencies.
Use `Android Studio` or `IntelliJ IDEA` to create a new Android project and select Kotlin in the `Language` column to automatically add basic dependencies.
### Integration Dependencies