Fix documentation contents bugs

This commit is contained in:
2023-01-13 10:09:37 +08:00
parent 2b7ee6cf78
commit 9d512a0d7d
22 changed files with 38 additions and 38 deletions

View File

@@ -138,7 +138,7 @@ As a child hooker, you can also call the `loadApp` method externally, and then d
> The following example
```kotlin
class HookEntry : IYukiHookXposedInit {
object HookEntry : IYukiHookXposedInit {
override fun onHook() = encase {
loadApp(name = "com.example.demo", ChildCustomHooker)
@@ -172,12 +172,12 @@ object FirstHooker : YukiBaseHooker() {
}
```
Once all Hookers are set up, you can load your Hooker in the `onHook` method of your `HookEntryClass`.
Once all Hookers are set up, you can load your Hooker in the `onHook` method of your Hook entry class.
> The following example
```kotlin
class HookEntry : IYukiHookXposedInit {
object HookEntry : IYukiHookXposedInit {
override fun onHook() =
YukiHookAPI.encase(FirstHooker, SecondHooker, ThirdHooker ...)
@@ -189,7 +189,7 @@ Of course, we can also abbreviate it.
> The following example
```kotlin
class HookEntry : IYukiHookXposedInit {
object HookEntry : IYukiHookXposedInit {
override fun onHook() = encase(FirstHooker, SecondHooker, ThirdHooker ...)
}
@@ -285,7 +285,7 @@ encase {
> Sample Code 2
```kotlin
class HookEntry : IYukiHookXposedInit {
object HookEntry : IYukiHookXposedInit {
override fun onHook() {
// <Scenario 1>
@@ -344,7 +344,7 @@ encase {
> Sample Code 2
```kotlin
class HookEntry : IYukiHookXposedInit {
object HookEntry : IYukiHookXposedInit {
override fun onHook() {
encase(CustomHooker)