import{_ as e,o,c as s,a as n}from"./app.78a03919.js";const a={},t=n(`<div class="custom-container warning"><p class="custom-container-title">Notice</p><p>The English translation of this page has not been completed, you are welcome to contribute translations to us.</p><p>You can use the <strong>Chrome Translation Plugin</strong> to translate entire pages for reference.</p></div><h1 id="yukihookfactory-kt" tabindex="-1"><a class="header-anchor" href="#yukihookfactory-kt" aria-hidden="true">#</a> YukiHookFactory <span class="symbol">- kt</span></h1><p><strong>Change Records</strong></p><p><code>v1.0</code> <code>first</code></p><p><code>v1.0.80</code> <code>modified</code></p><p>\u5408\u5E76\u5230 <code>IYukiHookXposedInit</code>\uFF0C\u5C06\u65B9\u6CD5\u4F53\u8FDB\u884C inline</p><p><strong>Function Illustrate</strong></p><blockquote><p>\u8FD9\u662F <code>YukiHookAPI</code> \u76F8\u5173 <code>lambda</code> \u65B9\u6CD5\u7684\u5C01\u88C5\u7C7B\u4EE5\u53CA\u90E8\u5206 API \u7528\u6CD5\u3002</p></blockquote><h2 id="iyukihookxposedinit-configs-ext-method" tabindex="-1"><a class="header-anchor" href="#iyukihookxposedinit-configs-ext-method" aria-hidden="true">#</a> IYukiHookXposedInit.configs <span class="symbol">- ext-method</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">inline</span><span style="color:#ADBAC7;"> </span><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> IYukiHookXposedInit.</span><span style="color:#DCBDFB;">configs</span><span style="color:#ADBAC7;">(initiate</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">YukiHookAPI</span><span style="color:#ADBAC7;">.</span><span style="color:#F69D50;">Configs</span><span style="color:#ADBAC7;">.() </span><span style="color:#F47067;">-&gt;</span><span style="color:#ADBAC7;"> </span><span style="color:#6CB6FF;">Unit</span><span style="color:#ADBAC7;">)</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.0.1</code> <code>added</code></p><p><code>v1.0.80</code> <code>modified</code></p><p>\u5408\u5E76\u5230 <code>IYukiHookXposedInit</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u5728 <code>IYukiHookXposedInit</code> \u4E2D\u914D\u7F6E <code>Configs</code>\u3002</p></blockquote><h2 id="iyukihookxposedinit-encase-ext-method" tabindex="-1"><a class="header-anchor" href="#iyukihookxposedinit-encase-ext-method" aria-hidden="true">#</a> IYukiHookXposedInit.encase <span class="symbol">- ext-method</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> IYukiHookXposedInit.</span><span style="color:#DCBDFB;">encase</span><span style="color:#ADBAC7;">(initiate</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">PackageParam</span><span style="color:#ADBAC7;">.() </span><span style="color:#F47067;">-&gt;</span><span style="color:#ADBAC7;"> </span><span style="color:#6CB6FF;">Unit</span><span style="color:#ADBAC7;">)</span></span>
<span class="line"></span></code></pre></div><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> IYukiHookXposedInit.</span><span style="color:#DCBDFB;">encase</span><span style="color:#ADBAC7;">(</span><span style="color:#F47067;">vararg</span><span style="color:#ADBAC7;"> hooker</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">YukiBaseHooker</span><span style="color:#ADBAC7;">)</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.0</code> <code>first</code></p><p><code>v1.0.80</code> <code>modified</code></p><p>\u5408\u5E76\u5230 <code>IYukiHookXposedInit</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u5728 <code>IYukiHookXposedInit</code> \u4E2D\u8C03\u7528 <code>YukiHookAPI</code>\u3002</p></blockquote><h2 id="context-moduleprefs-ext-field" tabindex="-1"><a class="header-anchor" href="#context-moduleprefs-ext-field" aria-hidden="true">#</a> Context.modulePrefs <span class="symbol">- ext-field</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">val</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">Context</span><span style="color:#ADBAC7;">.modulePrefs</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">YukiHookModulePrefs</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.0</code> <code>first</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u83B7\u53D6\u6A21\u5757\u7684\u5B58\u53D6\u5BF9\u8C61\u3002</p></blockquote><h2 id="context-moduleprefs-ext-method" tabindex="-1"><a class="header-anchor" href="#context-moduleprefs-ext-method" aria-hidden="true">#</a> Context.modulePrefs <span class="symbol">- ext-method</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> Context.</span><span style="color:#DCBDFB;">modulePrefs</span><span style="color:#ADBAC7;">(name</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#6CB6FF;">String</span><span style="color:#ADBAC7;">)</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">YukiHookModulePrefs</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.0</code> <code>first</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u83B7\u53D6\u6A21\u5757\u7684\u5B58\u53D6\u5BF9\u8C61\uFF0C\u53EF\u8BBE\u7F6E <code>name</code> \u4E3A\u81EA\u5B9A\u4E49 Sp \u5B58\u50A8\u540D\u79F0\u3002</p></blockquote><h2 id="context-datachannel-ext-method" tabindex="-1"><a class="header-anchor" href="#context-datachannel-ext-method" aria-hidden="true">#</a> Context.dataChannel <span class="symbol">- ext-method</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> Context.</span><span style="color:#DCBDFB;">dataChannel</span><span style="color:#ADBAC7;">(packageName</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#6CB6FF;">String</span><span style="color:#ADBAC7;">)</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">YukiHookDataChannel</span><span style="color:#ADBAC7;">.</span><span style="color:#F69D50;">NameSpace</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.0.88</code> <code>added</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u83B7\u53D6\u6A21\u5757\u7684\u6570\u636E\u901A\u8BAF\u6865\u547D\u540D\u7A7A\u95F4\u5BF9\u8C61\u3002</p></blockquote><div class="custom-container danger"><p class="custom-container-title">Pay Attention</p><p>\u53EA\u80FD\u5728\u6A21\u5757\u73AF\u5883\u4F7F\u7528\u6B64\u529F\u80FD\uFF0C\u5176\u5B83\u73AF\u5883\u4E0B\u4F7F\u7528\u5C06\u4E0D\u8D77\u4F5C\u7528\u3002</p></div><h2 id="context-processname-ext-field" tabindex="-1"><a class="header-anchor" href="#context-processname-ext-field" aria-hidden="true">#</a> Context.processName <span class="symbol">- ext-field</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">val</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">Context</span><span style="color:#ADBAC7;">.processName</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#6CB6FF;">String</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.0</code> <code>first</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u83B7\u53D6\u5F53\u524D\u8FDB\u7A0B\u540D\u79F0\u3002</p></blockquote><h2 id="context-resources-injectmoduleappresources-ext-method" tabindex="-1"><a class="header-anchor" href="#context-resources-injectmoduleappresources-ext-method" aria-hidden="true">#</a> Context+Resources.injectModuleAppResources <span class="symbol">- ext-method</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> Context.</span><span style="color:#DCBDFB;">injectModuleAppResources</span><span style="color:#ADBAC7;">()</span></span>
<span class="line"></span></code></pre></div><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> Resources.</span><span style="color:#DCBDFB;">injectModuleAppResources</span><span style="color:#ADBAC7;">()</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.1.0</code> <code>added</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u5411 Hook APP (\u5BBF\u4E3B) <code>Context</code> \u6216 <code>Resources</code> \u6CE8\u5165\u5F53\u524D Xposed \u6A21\u5757\u7684\u8D44\u6E90\u3002</p></blockquote><p>\u6CE8\u5165\u6210\u529F\u540E\uFF0C\u4F60\u5C31\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u4F8B\u5982 <code>ImageView.setImageResource</code> \u6216 <code>Resources.getString</code> \u88C5\u8F7D\u5F53\u524D Xposed \u6A21\u5757\u7684\u8D44\u6E90 ID\u3002</p><p>\u6CE8\u5165\u7684\u8D44\u6E90\u4F5C\u7528\u57DF\u4EC5\u9650\u5F53\u524D <code>Context</code> \u6216 <code>Resources</code>\uFF0C\u4F60\u9700\u8981\u5728\u6BCF\u4E2A\u7528\u5230\u5BBF\u4E3B <code>Context</code> \u6216 <code>Resources</code> \u7684\u5730\u65B9\u91CD\u590D\u8C03\u7528\u6B64\u65B9\u6CD5\u8FDB\u884C\u6CE8\u5165\u624D\u80FD\u4F7F\u7528\u3002</p><div class="custom-container danger"><p class="custom-container-title">Pay Attention</p><p>\u53EA\u80FD\u5728 (Xposed) \u5BBF\u4E3B\u73AF\u5883\u4F7F\u7528\u6B64\u529F\u80FD\uFF0C\u5176\u5B83\u73AF\u5883\u4E0B\u4F7F\u7528\u5C06\u4E0D\u751F\u6548\u4E14\u4F1A\u6253\u5370\u8B66\u544A\u4FE1\u606F\u3002</p></div><h2 id="context-registermoduleappactivities-ext-method" tabindex="-1"><a class="header-anchor" href="#context-registermoduleappactivities-ext-method" aria-hidden="true">#</a> Context.registerModuleAppActivities <span class="symbol">- ext-method</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> Context.</span><span style="color:#DCBDFB;">registerModuleAppActivities</span><span style="color:#ADBAC7;">(proxy</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#6CB6FF;">Any?</span><span style="color:#ADBAC7;">)</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.1.0</code> <code>added</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u5411 Hook APP (\u5BBF\u4E3B) \u6CE8\u518C\u5F53\u524D Xposed \u6A21\u5757\u7684 <code>Activity</code>\u3002</p></blockquote><p>\u6CE8\u518C\u6210\u529F\u540E\uFF0C\u4F60\u5C31\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 <code>Context.startActivity</code> \u6765\u542F\u52A8\u672A\u5728\u5BBF\u4E3B\u4E2D\u6CE8\u518C\u7684 <code>Activity</code>\u3002</p><p>\u4F7F\u7528\u6B64\u65B9\u6CD5\u4F1A\u5728\u672A\u6CE8\u518C\u7684 <code>Activity</code> \u5728 Hook APP (\u5BBF\u4E3B) \u4E2D\u542F\u52A8\u65F6\u81EA\u52A8\u8C03\u7528 <code>injectModuleAppResources</code> \u6CE8\u5165\u5F53\u524D Xposed \u6A21\u5757\u7684\u8D44\u6E90\u3002</p><p>\u4F60\u8981\u5C06\u9700\u8981\u5728\u5BBF\u4E3B\u542F\u52A8\u7684 <code>Activity</code> \u7EE7\u627F\u4E8E <code>ModuleAppActivity</code> \u6216 <code>ModuleAppCompatActivity</code>\u3002</p><div class="custom-container danger"><p class="custom-container-title">Pay Attention</p><p>\u53EA\u80FD\u5728 (Xposed) \u5BBF\u4E3B\u73AF\u5883\u4F7F\u7528\u6B64\u529F\u80FD\uFF0C\u5176\u5B83\u73AF\u5883\u4E0B\u4F7F\u7528\u5C06\u4E0D\u751F\u6548\u4E14\u4F1A\u6253\u5370\u8B66\u544A\u4FE1\u606F\u3002</p></div><h2 id="context-applymoduletheme-ext-method" tabindex="-1"><a class="header-anchor" href="#context-applymoduletheme-ext-method" aria-hidden="true">#</a> Context.applyModuleTheme <span class="symbol">- ext-method</span></h2><div class="language-kotlin ext-kt"><pre class="shiki" style="background-color:#22272e;"><code><span class="line"><span style="color:#F47067;">fun</span><span style="color:#ADBAC7;"> Context.</span><span style="color:#DCBDFB;">applyModuleTheme</span><span style="color:#ADBAC7;">(theme</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#6CB6FF;">Int</span><span style="color:#ADBAC7;">, configuration</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">Configuration?</span><span style="color:#ADBAC7;">)</span><span style="color:#F47067;">:</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">ModuleContextThemeWrapper</span></span>
<span class="line"></span></code></pre></div><p><strong>Change Records</strong></p><p><code>v1.1.0</code> <code>added</code></p><p><strong>Function Illustrate</strong></p><blockquote><p>\u751F\u6210\u4E00\u4E2A <code>ContextThemeWrapper</code> \u4EE3\u7406\u4EE5\u5E94\u7528\u5F53\u524D Xposed \u6A21\u5757\u7684\u4E3B\u9898\u8D44\u6E90\u3002</p></blockquote><p>\u5728 Hook APP (\u5BBF\u4E3B) \u4E2D\u4F7F\u7528\u6B64\u65B9\u6CD5\u4F1A\u81EA\u52A8\u8C03\u7528 <code>injectModuleAppResources</code> \u6CE8\u5165\u5F53\u524D Xposed \u6A21\u5757\u7684\u8D44\u6E90\u3002</p><p>\u5982\u679C\u5728 Hook APP (\u5BBF\u4E3B) \u4E2D\u4F7F\u7528\u6B64\u65B9\u6CD5\u53D1\u751F <code>ClassCastException</code>\uFF0C\u8BF7\u624B\u52A8\u8BBE\u7F6E <code>configuration</code>\u3002</p><h2 class="deprecated">isSupportResourcesHook - field</h2><p><strong>Change Records</strong></p><p><code>v1.0.80</code> <code>added</code></p><p><code>v1.0.91</code> <code>removed</code></p><p>\u8BF7\u8F6C\u79FB\u5230 <code>YukiHookAPI.Status.isSupportResourcesHook</code></p><h2 class="deprecated">isModuleActive - field</h2><p><strong>Change Records</strong></p><p><code>v1.0.6</code> <code>added</code></p><p><code>v1.0.91</code> <code>removed</code></p><p>\u8BF7\u8F6C\u79FB\u5230 <code>YukiHookAPI.Status.isModuleActive</code></p><h2 class="deprecated">isXposedModuleActive - field</h2><p><strong>Change Records</strong></p><p><code>v1.0.6</code> <code>added</code></p><p><code>v1.0.91</code> <code>removed</code></p><p>\u8BF7\u8F6C\u79FB\u5230 <code>YukiHookAPI.Status.isXposedModuleActive</code></p><h2 class="deprecated">isTaiChiModuleActive - field</h2><p><strong>Change Records</strong></p><p><code>v1.0</code> <code>first</code></p><p><code>v1.0.91</code> <code>removed</code></p><p>\u8BF7\u8F6C\u79FB\u5230 <code>YukiHookAPI.Status.isTaiChiModuleActive</code></p><h1 class="deprecated">YukiHookModuleStatus - class</h1><p><strong>Change Records</strong></p><p><code>v1.0</code> <code>first</code></p><p><code>v1.0.91</code> <code>deprecated</code></p><p>\u8BF7\u8F6C\u79FB\u5230 <code>YukiHookAPI.Status</code></p>`,103),c=[t];function p(l,d){return o(),s("div",null,c)}const i=e(a,[["render",p],["__file","YukiHookFactory.html.vue"]]);export{i as default};
