mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Modify add English document links in code note
This commit is contained in:
@@ -275,6 +275,8 @@ object YukiHookAPI {
|
||||
*
|
||||
* 详情请参考 [API 文档](https://fankes.github.io/YukiHookAPI/zh-cn/api/home)
|
||||
*
|
||||
* For English version, see [API Document](https://fankes.github.io/YukiHookAPI/en/api/home)
|
||||
*
|
||||
* 除非缓存的 [Member] 发生了混淆的问题 - 例如使用 R8 混淆后的 APP 的目标 [Member] - 否则建议启用
|
||||
*/
|
||||
var isEnableMemberCache = true
|
||||
@@ -295,6 +297,8 @@ object YukiHookAPI {
|
||||
* 配置 [YukiHookAPI] 相关参数
|
||||
*
|
||||
* 详情请参考 [configs 方法](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#configs-%E6%96%B9%E6%B3%95)
|
||||
*
|
||||
* For English version, see [configs Method](https://fankes.github.io/YukiHookAPI/en/config/api-example#configs-method)
|
||||
* @param initiate 方法体
|
||||
*/
|
||||
inline fun configs(initiate: Configs.() -> Unit) = Configs.apply(initiate).build()
|
||||
@@ -304,7 +308,11 @@ object YukiHookAPI {
|
||||
*
|
||||
* 用法请参考 [API 文档](https://fankes.github.io/YukiHookAPI/zh-cn/api/home)
|
||||
*
|
||||
* For English version, see [API Document](https://fankes.github.io/YukiHookAPI/en/api/home)
|
||||
*
|
||||
* 配置请参考 [通过 lambda 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87-lambda-%E5%88%9B%E5%BB%BA)
|
||||
*
|
||||
* For English version, see [Created by lambda](https://fankes.github.io/YukiHookAPI/en/config/api-example#created-by-lambda)
|
||||
* @param initiate Hook 方法体
|
||||
*/
|
||||
fun encase(initiate: PackageParam.() -> Unit) {
|
||||
@@ -319,7 +327,11 @@ object YukiHookAPI {
|
||||
*
|
||||
* 用法请参考 [API 文档](https://fankes.github.io/YukiHookAPI/zh-cn/api/home)
|
||||
*
|
||||
* 配置请参考 [通过自定义 Hooker 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87%E8%87%AA%E5%AE%9A%E4%B9%89-hooker-%E5%88%9B%E5%BB%BA)
|
||||
* For English version, see [API Document](https://fankes.github.io/YukiHookAPI/en/api/home)
|
||||
*
|
||||
* 配置请参考 [通过 lambda 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87-lambda-%E5%88%9B%E5%BB%BA)
|
||||
*
|
||||
* For English version, see [Created by lambda](https://fankes.github.io/YukiHookAPI/en/config/api-example#created-by-lambda)
|
||||
* @param hooker Hook 子类数组 - 必填不能为空
|
||||
* @throws IllegalStateException 如果 [hooker] 是空的
|
||||
*/
|
||||
@@ -341,9 +353,15 @@ object YukiHookAPI {
|
||||
*
|
||||
* 详情请参考 [作为 Hook API 使用](https://fankes.github.io/YukiHookAPI/zh-cn/guide/quick-start#%E4%BD%9C%E4%B8%BA-hook-api-%E4%BD%BF%E7%94%A8)
|
||||
*
|
||||
* 配置请参考 [通过 lambda 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87-lambda-%E5%88%9B%E5%BB%BA)
|
||||
* For English version, see [Use as Hook API](https://fankes.github.io/YukiHookAPI/en/guide/quick-start#use-as-hook-api)
|
||||
*
|
||||
* 用法请参考 [API 文档](https://fankes.github.io/YukiHookAPI/zh-cn/api/home)
|
||||
*
|
||||
* For English version, see [API Document](https://fankes.github.io/YukiHookAPI/en/api/home)
|
||||
*
|
||||
* 配置请参考 [通过 lambda 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87-lambda-%E5%88%9B%E5%BB%BA)
|
||||
*
|
||||
* For English version, see [Created by lambda](https://fankes.github.io/YukiHookAPI/en/config/api-example#created-by-lambda)
|
||||
* @param baseContext attachBaseContext
|
||||
* @param initiate Hook 方法体
|
||||
*/
|
||||
@@ -362,9 +380,15 @@ object YukiHookAPI {
|
||||
*
|
||||
* 详情请参考 [作为 Hook API 使用](https://fankes.github.io/YukiHookAPI/zh-cn/guide/quick-start#%E4%BD%9C%E4%B8%BA-hook-api-%E4%BD%BF%E7%94%A8)
|
||||
*
|
||||
* 配置请参考 [通过自定义 Hooker 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87%E8%87%AA%E5%AE%9A%E4%B9%89-hooker-%E5%88%9B%E5%BB%BA)
|
||||
* For English version, see [Use as Hook API](https://fankes.github.io/YukiHookAPI/en/guide/quick-start#use-as-hook-api)
|
||||
*
|
||||
* 用法请参考 [API 文档](https://fankes.github.io/YukiHookAPI/zh-cn/api/home)
|
||||
*
|
||||
* For English version, see [API Document](https://fankes.github.io/YukiHookAPI/en/api/home)
|
||||
*
|
||||
* 配置请参考 [通过 lambda 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87-lambda-%E5%88%9B%E5%BB%BA)
|
||||
*
|
||||
* For English version, see [Created by lambda](https://fankes.github.io/YukiHookAPI/en/config/api-example#created-by-lambda)
|
||||
* @param baseContext attachBaseContext
|
||||
* @param hooker Hook 子类数组 - 必填不能为空
|
||||
* @throws IllegalStateException 如果 [hooker] 是空的
|
||||
|
@@ -51,6 +51,8 @@ import de.robv.android.xposed.IXposedHookInitPackageResources
|
||||
* - ❗只能拥有一个 Hook 入口 - 若存在多个注解编译会报错
|
||||
*
|
||||
* 详情请参考 [InjectYukiHookWithXposed 注解](https://fankes.github.io/YukiHookAPI/zh-cn/config/xposed-using#injectyukihookwithxposed-%E6%B3%A8%E8%A7%A3)
|
||||
*
|
||||
* For English version, see [InjectYukiHookWithXposed Annotation](https://fankes.github.io/YukiHookAPI/en/config/xposed-using#injectyukihookwithxposed-annotation)
|
||||
* @param sourcePath 你的项目 source 相对路径 - 默认为 ..src/main..
|
||||
* @param modulePackageName 模块包名 - 不填默认自动生成
|
||||
* @param entryClassName 定义 [YukiHookAPI] 自动生成 Xposed 模块入口类的名称 - 不填默认使用 HookEntryClass_YukiHookXposedInit 进行生成
|
||||
|
@@ -56,6 +56,8 @@ import com.highcapable.yukihookapi.hook.xposed.proxy.IYukiHookXposedInit
|
||||
* 更多请参考 [InjectYukiHookWithXposed] 中的注解内容
|
||||
*
|
||||
* 详情请参考 [通过自定义 Hooker 创建](https://fankes.github.io/YukiHookAPI/zh-cn/config/api-example#%E9%80%9A%E8%BF%87%E8%87%AA%E5%AE%9A%E4%B9%89-hooker-%E5%88%9B%E5%BB%BA)
|
||||
*
|
||||
* For English version, see [Created with Custom Hooker](https://fankes.github.io/YukiHookAPI/en/config/api-example#created-with-custom-hooker)
|
||||
*/
|
||||
abstract class YukiBaseHooker : PackageParam() {
|
||||
|
||||
|
@@ -118,6 +118,8 @@ val Context.processName
|
||||
*
|
||||
* 详情请参考 [注入模块资源 (Resources)](https://fankes.github.io/YukiHookAPI/zh-cn/api/special-features/host-inject#%E6%B3%A8%E5%85%A5%E6%A8%A1%E5%9D%97%E8%B5%84%E6%BA%90-resources)
|
||||
*
|
||||
* For English version, see [Inject Module Resources](https://fankes.github.io/YukiHookAPI/en/api/special-features/host-inject#inject-module-resources)
|
||||
*
|
||||
* - ❗只能在 (Xposed) 宿主环境使用此功能 - 其它环境下使用将不生效且会打印警告信息
|
||||
*/
|
||||
fun Context.injectModuleAppResources() = resources?.injectModuleAppResources()
|
||||
@@ -131,6 +133,8 @@ fun Context.injectModuleAppResources() = resources?.injectModuleAppResources()
|
||||
*
|
||||
* 详情请参考 [注入模块资源 (Resources)](https://fankes.github.io/YukiHookAPI/zh-cn/api/special-features/host-inject#%E6%B3%A8%E5%85%A5%E6%A8%A1%E5%9D%97%E8%B5%84%E6%BA%90-resources)
|
||||
*
|
||||
* For English version, see [Inject Module Resources](https://fankes.github.io/YukiHookAPI/en/api/special-features/host-inject#inject-module-resources)
|
||||
*
|
||||
* - ❗只能在 (Xposed) 宿主环境使用此功能 - 其它环境下使用将不生效且会打印警告信息
|
||||
*/
|
||||
fun Resources.injectModuleAppResources() = AppParasitics.injectModuleAppResources(hostResources = this)
|
||||
@@ -146,6 +150,8 @@ fun Resources.injectModuleAppResources() = AppParasitics.injectModuleAppResource
|
||||
*
|
||||
* 详情请参考 [注册模块 Activity](https://fankes.github.io/YukiHookAPI/zh-cn/api/special-features/host-inject#%E6%B3%A8%E5%86%8C%E6%A8%A1%E5%9D%97-activity)
|
||||
*
|
||||
* For English version, see [Register Module Activity](https://fankes.github.io/YukiHookAPI/en/api/special-features/host-inject#register-module-activity)
|
||||
*
|
||||
* - ❗只能在 (Xposed) 宿主环境使用此功能 - 其它环境下使用将不生效且会打印警告信息
|
||||
* @param proxy 代理的 [Activity] - 必须存在于宿主的 AndroidMainifest 清单中 - 不填使用默认 [Activity]
|
||||
*/
|
||||
@@ -159,6 +165,8 @@ fun Context.registerModuleAppActivities(proxy: Any? = null) = AppParasitics.regi
|
||||
* - 如果在 Hook APP (宿主) 中使用此方法发生 [ClassCastException] - 请手动设置新的 [configuration]
|
||||
*
|
||||
* 详情请参考 [创建 ContextThemeWrapper 代理](https://fankes.github.io/YukiHookAPI/zh-cn/api/special-features/host-inject#%E5%88%9B%E5%BB%BA-contextthemewrapper-%E4%BB%A3%E7%90%86)
|
||||
*
|
||||
* For English version, see [Create ContextThemeWrapper Proxy](https://fankes.github.io/YukiHookAPI/en/api/special-features/host-inject#create-contextthemewrapper-proxy)
|
||||
* @param theme 主题资源 ID
|
||||
* @param configuration 使用的 [Configuration] - 默认空
|
||||
* @return [ModuleContextThemeWrapper]
|
||||
|
@@ -56,6 +56,8 @@ import com.highcapable.yukihookapi.thirdparty.me.weishu.reflection.Reflection
|
||||
* - 在模块中使用 [YukiHookAPI.Status.isTaiChiModuleActive] 判断太极、无极激活状态
|
||||
*
|
||||
* 详情请参考 [API 文档 - ModuleApplication](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/application/ModuleApplication)
|
||||
*
|
||||
* For English version, see [API Document - ModuleApplication](https://fankes.github.io/YukiHookAPI/en/api/public/com/highcapable/yukihookapi/hook/xposed/application/ModuleApplication)
|
||||
*/
|
||||
open class ModuleApplication : Application() {
|
||||
|
||||
|
@@ -48,6 +48,8 @@ import de.robv.android.xposed.XposedBridge
|
||||
* 调用 [YukiHookAPI.Status.executorVersion] 来获取当前 Hook 框架的版本
|
||||
*
|
||||
* 详情请参考 [Xposed 模块判断自身激活状态](https://fankes.github.io/YukiHookAPI/zh-cn/guide/example#xposed-%E6%A8%A1%E5%9D%97%E5%88%A4%E6%96%AD%E8%87%AA%E8%BA%AB%E6%BF%80%E6%B4%BB%E7%8A%B6%E6%80%81)
|
||||
*
|
||||
* For English version, see [Xposed Module own Active State](https://fankes.github.io/YukiHookAPI/en/guide/example#xposed-module-own-active-state)
|
||||
*/
|
||||
internal object YukiHookModuleStatus {
|
||||
|
||||
|
@@ -58,7 +58,9 @@ import java.util.concurrent.ConcurrentHashMap
|
||||
*
|
||||
* - ❗模块与宿主需要保持存活状态 - 否则无法建立通讯
|
||||
*
|
||||
* - 详情请参考 [API 文档 - YukiHookDataChannel](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel)
|
||||
* 详情请参考 [API 文档 - YukiHookDataChannel](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel)
|
||||
*
|
||||
* For English version, see [API Document - YukiHookDataChannel](https://fankes.github.io/YukiHookAPI/en/api/public/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel)
|
||||
*/
|
||||
class YukiHookDataChannel private constructor() {
|
||||
|
||||
|
@@ -34,7 +34,9 @@ import com.highcapable.yukihookapi.hook.xposed.channel.YukiHookDataChannel
|
||||
*
|
||||
* 这个类是对 [YukiHookDataChannel] 的一个扩展用法
|
||||
*
|
||||
* - 详情请参考 [API 文档 - ChannelData](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/channel/data/ChannelData)
|
||||
* 详情请参考 [API 文档 - ChannelData](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/channel/data/ChannelData)
|
||||
*
|
||||
* For English version, see [API Document - ChannelData](https://fankes.github.io/YukiHookAPI/en/api/public/com/highcapable/yukihookapi/hook/xposed/channel/data/ChannelData)
|
||||
* @param key 键值
|
||||
* @param value 键值数据 - 作为接收数据时可空
|
||||
*/
|
||||
|
@@ -61,7 +61,9 @@ import java.io.File
|
||||
*
|
||||
* - 若你正在使用 [PreferenceFragmentCompat] - 请迁移到 [ModulePreferenceFragment] 以适配上述功能特性
|
||||
*
|
||||
* - 详情请参考 [API 文档 - YukiHookModulePrefs](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/YukiHookModulePrefs)
|
||||
* 详情请参考 [API 文档 - YukiHookModulePrefs](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/YukiHookModulePrefs)
|
||||
*
|
||||
* For English version, see [API Document - YukiHookModulePrefs](https://fankes.github.io/YukiHookAPI/en/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/YukiHookModulePrefs)
|
||||
* @param context 上下文实例 - 默认空
|
||||
*/
|
||||
class YukiHookModulePrefs private constructor(private var context: Context? = null) {
|
||||
|
@@ -34,7 +34,9 @@ import com.highcapable.yukihookapi.hook.xposed.prefs.YukiHookModulePrefs
|
||||
*
|
||||
* 这个类是对 [YukiHookModulePrefs] 的一个扩展用法
|
||||
*
|
||||
* - 详情请参考 [API 文档 - PrefsData](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/data/PrefsData)
|
||||
* 详情请参考 [API 文档 - PrefsData](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/data/PrefsData)
|
||||
*
|
||||
* For English version, see [API Document - PrefsData](https://fankes.github.io/YukiHookAPI/en/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/data/PrefsData)
|
||||
* @param key 键值
|
||||
* @param value 默认值
|
||||
*/
|
||||
|
@@ -52,6 +52,8 @@ import com.highcapable.yukihookapi.hook.xposed.prefs.YukiHookModulePrefs
|
||||
* 然后请将重写方法由 [onCreatePreferences] 替换为 [onCreatePreferencesInModuleApp] 即可
|
||||
*
|
||||
* 详情请参考 [API 文档 - ModulePreferenceFragment](https://fankes.github.io/YukiHookAPI/zh-cn/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/ModulePreferenceFragment)
|
||||
*
|
||||
* For English version, see [API Document - ModulePreferenceFragment](https://fankes.github.io/YukiHookAPI/en/api/public/com/highcapable/yukihookapi/hook/xposed/prefs/ModulePreferenceFragment)
|
||||
*/
|
||||
abstract class ModulePreferenceFragment : PreferenceFragmentCompat(), SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
|
||||
|
@@ -52,6 +52,8 @@ import com.highcapable.yukihookapi.hook.xposed.bridge.event.YukiXposedEvent
|
||||
* 你还可以实现监听原生 Xposed API 功能 - 重写 [onXposedEvent] 方法即可
|
||||
*
|
||||
* 详情请参考 [IYukiHookXposedInit 接口](https://fankes.github.io/YukiHookAPI/zh-cn/config/xposed-using#iyukihookxposedinit-%E6%8E%A5%E5%8F%A3)
|
||||
*
|
||||
* For English version, see [IYukiHookXposedInit Interface](https://fankes.github.io/YukiHookAPI/en/config/xposed-using#iyukihookxposedinit-interface)
|
||||
*/
|
||||
interface IYukiHookXposedInit {
|
||||
|
||||
|
Reference in New Issue
Block a user