Update api-exception documentation

This commit is contained in:
2022-10-04 06:46:53 +08:00
parent fbb8cbdb8c
commit d1860c5ae3
2 changed files with 56 additions and 0 deletions

View File

@@ -1225,6 +1225,33 @@ The supported types of `YukiHookModulePrefs` are only `String`, `Set<String>`, `
The supported types of `YukiHookDataChannel` are the types restricted by `Intent.putExtra`, please pass in the supported types. The supported types of `YukiHookDataChannel` are the types restricted by `Intent.putExtra`, please pass in the supported types.
::: danger IllegalStateException
loadApp/loadZygote/loadSystem/withProcess method need a "**NAME**" param
:::
**Abnormal**
The variable array variable parameter that needs to be filled is missing in `loadApp`, `loadZygote`, `loadSystem`, `withProcess`.
> The following example
```kotlin
// <Scenario 1>
loadApp()
// <Scenario 2>
loadZygote()
// <Scenario 3>
loadSystem()
// <Scenario 4>
withProcess()
```
**Solution**
Please see the usage in `PackageParam` to use this function correctly.
###### exception ###### exception
::: danger IllegalStateException ::: danger IllegalStateException

View File

@@ -1191,6 +1191,35 @@ Key-Value type **TYPE** is not allowed
::: danger IllegalStateException ::: danger IllegalStateException
loadApp/loadZygote/loadSystem/withProcess method need a "**NAME**" param
:::
**异常原因**
`loadApp``loadZygote``loadSystem``withProcess` 中缺少了需要填写的可变数组变量参数。
> 示例如下
```kotlin
// <情景 1>
loadApp()
// <情景 2>
loadZygote()
// <情景 3>
loadSystem()
// <情景 4>
withProcess()
```
**解决方案**
请查看 `PackageParam` 中的用法正确地使用此功能。
###### exception
::: danger IllegalStateException
YukiHookDataChannel cannot used in zygote YukiHookDataChannel cannot used in zygote
::: :::