mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +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).
|
||||
|
||||
|
@@ -153,7 +153,19 @@ class HookEntry : IYukiHookXposedInit {
|
||||
|
||||
::: tip 建议
|
||||
|
||||
你可以将你的模块 APP 的 **Application** 继承于 **ModuleApplication** 以实现完整使用体验。
|
||||
请在 **onInit** 方法中配置 **YukiHookAPI** 并将 **isDebug** 模式设置为如下形式。
|
||||
|
||||
> 示例如下
|
||||
|
||||
```kotlin
|
||||
override fun onInit() = configs {
|
||||
isDebug = BuildConfig.DEBUG
|
||||
}
|
||||
```
|
||||
|
||||
**YukiHookAPI** 默认会打印所有用于调试的日志,若作为发布版本请务必关闭调试功能防止对用户设备造成大量日志填充。
|
||||
|
||||
你还可以将你的模块 APP 的 **Application** 继承于 **ModuleApplication** 以实现完整使用体验。
|
||||
|
||||
更多功能请参考 [ModuleApplication](../api/public/com/highcapable/yukihookapi/hook/xposed/application/ModuleApplication)。
|
||||
|
||||
|
Reference in New Issue
Block a user