mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-08 19:44:16 +08:00
Modify add onInit method's suggestion in quick-start documentation
This commit is contained in:
@@ -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).
|
||||
|
||||
|
Reference in New Issue
Block a user