---
pageClass: code-page
---

::: warning

Due to maintenance costs, the `YukiHookAPI` will no longer update this document from version `1.3.0` and switch to the API document automatically generated by the Dokka plugin in version `2.0.0`.

:::

::: warning

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.

:::

# ModuleClassLoader <span class="symbol">- class</span>

```kotlin:no-line-numbers
class ModuleClassLoader private constructor() : ClassLoader
```

**Change Records**

`v1.1.2` `added`

**Function Illustrate**

> 自动处理 (Xposed) 宿主环境与模块环境的 `ClassLoader`。

## companion object <span class="symbol">- object</span>

**Change Records**

`v1.1.2` `added`

### excludeHostClasses <span class="symbol">- method</span>

```kotlin:no-line-numbers
fun excludeHostClasses(vararg name: String)
```

**Change Records**

`v1.1.2` `added`

**Function Illustrate**

> 添加到 Hook APP (宿主) `Class` 排除列表。

排除列表中的 `Class` 将会使用宿主的 `ClassLoader` 进行装载。

::: danger

排除列表仅会在 (Xposed) 宿主环境生效。

:::

### excludeModuleClasses <span class="symbol">- method</span>

```kotlin:no-line-numbers
fun excludeModuleClasses(vararg name: String)
```

**Change Records**

`v1.1.2` `added`

**Function Illustrate**

> 添加到模块 `Class` 排除列表。

排除列表中的 `Class` 将会使用模块 (当前宿主环境的模块注入进程) 的 `ClassLoader` 进行装载。

::: danger

排除列表仅会在 (Xposed) 宿主环境生效。

:::