mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 01:35:17 +08:00
3 lines
2.7 KiB
JavaScript
3 lines
2.7 KiB
JavaScript
import{_ as s,o,c as a,a as e}from"./app-BpUB8-Q8.js";const n={},t=e(`<div class="custom-container warning"><p class="custom-container-title">Notice</p><p>Due to maintenance costs, the <code>YukiHookAPI</code> will no longer update this document from version <code>1.3.0</code> and switch to the API document automatically generated by the Dokka plugin in version <code>2.0.0</code>.</p></div><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="hookclass-class" tabindex="-1"><a class="header-anchor" href="#hookclass-class" aria-hidden="true">#</a> HookClass <span class="symbol">- class</span></h1><div class="language-kotlin" data-ext="kt"><pre class="shiki github-dark-dimmed" style="background-color:#22272e;" tabindex="0"><code><span class="line"><span style="color:#F47067;">class</span><span style="color:#ADBAC7;"> </span><span style="color:#F69D50;">HookClass</span><span style="color:#ADBAC7;"> </span><span style="color:#F47067;">internal</span><span style="color:#ADBAC7;"> </span><span style="color:#DCBDFB;">constructor</span><span style="color:#ADBAC7;">(</span><span style="color:#F47067;">internal</span><span style="color:#ADBAC7;"> </span><span style="color:#F47067;">var</span><span style="color:#ADBAC7;"> instance: </span><span style="color:#F69D50;">Class</span><span style="color:#ADBAC7;"><*>?, </span><span style="color:#F47067;">internal</span><span style="color:#ADBAC7;"> </span><span style="color:#F47067;">var</span><span style="color:#ADBAC7;"> name: </span><span style="color:#F69D50;">String</span><span style="color:#ADBAC7;">, </span><span style="color:#F47067;">internal</span><span style="color:#ADBAC7;"> </span><span style="color:#F47067;">var</span><span style="color:#ADBAC7;"> throwable: </span><span style="color:#F69D50;">Throwable</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.1.0</code> <code>modified</code></p><p><code>HookClass</code> 相关功能不再对外开放</p><p><strong>Function Illustrate</strong></p><blockquote><p>创建一个当前 Hook 的 <code>Class</code> 接管类。</p></blockquote><p><code>instance</code> 为实例,<code>name</code> 为实例完整包名,<code>throwable</code> 为找不到实例的时候抛出的异常。</p>`,11),l=[t];function c(p,r){return o(),a("div",null,l)}const d=s(n,[["render",c],["__file","HookClass.html.vue"]]);export{d as default};
|