mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-08 19:44:16 +08:00
Added excludeHostClasses, excludeModuleClasses function in ModuleClassLoader
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
---
|
||||
pageClass: code-page
|
||||
---
|
||||
|
||||
::: 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) 宿主环境生效。
|
||||
|
||||
:::
|
Reference in New Issue
Block a user