Notice
The English translation of this page has not been completed, you are welcome to contribute translations to us.
You can use the Chrome Translation Plugin to translate entire pages for reference.
ModuleApplication - class
open class ModuleApplication: Application()
Change Records
v1.0.77 added
Function Illustrate
这是对使用
YukiHookAPIXposed 模块实现中的一个扩展功能。
在你的 Xposed 模块的 Application 中继承此类。
或在 AndroidManifest.xml 的 application 标签中指定此类。
目前可实现功能如下
全局共享模块中静态的
appContext在模块与宿主中装载
YukiHookAPI.Config以确保YukiHookAPI.Configs.debugTag不需要重复定义在模块与宿主中使用
YukiHookDataChannel进行通讯在模块中使用系统隐藏 API,核心技术引用了开源项目 FreeReflection
在模块中使用
YukiHookAPI.Status.isTaiChiModuleActive判断太极、无极激活状态
Function Example
将此类继承到你的自定义 Application 上。
The following example
package com.demo
class MyApplication: ModuleApplication() {
override fun onCreate() {
super.onCreate()
}
}
在 AndroidManifest.xml 的 application 标签中指定自定义的 Application。
The following example
<application
android:name="com.demo.MyApplication"
...>
如果你不需要自定义 Application 可以直接将 ModuleApplication 设置到 AndroidManifest.xml 的 application 标签中。
The following example
<application
android:name="io.github.dreammooncai.yukihookapi.kt.xposed.application.ModuleApplication"...>
appContext - field
val appContext: ModuleApplication
Change Records
v1.0.77 added
Function Illustrate
获取全局静态
Application实例。
