Modify add onInit method's suggestion in quick-start documentation

This commit is contained in:
2022-12-29 23:28:21 +08:00
parent df090ac3c2
commit d2042daf5f
2 changed files with 28 additions and 2 deletions

View File

@@ -154,7 +154,21 @@ class HookEntry : IYukiHookXposedInit {
::: tip Suggestion
You can extends **Application** of your Module App from **ModuleApplication** to achieve a complete user experience.
Please configure **YukiHookAPI** in the **onInit** method and set the **isDebug** mode to the following form.
> The following example
```kotlin
override fun onInit() = configs {
isDebug = BuildConfig.DEBUG
}
```
**YukiHookAPI** will print all logs for debugging by default.
For a release build, be sure to turn off debugging to prevent a lot of log stuffing on the user's device.
You can also extends **Application** of your Module App from **ModuleApplication** to achieve a complete user experience.
For more functions, please refer to [ModuleApplication](../api/public/com/highcapable/yukihookapi/hook/xposed/application/ModuleApplication).