mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 01:35:17 +08:00
Modify add ChannelPriority class and add "priority" param in wait, checkingVersionEquals, obtainLoggerInMemoryData function in YukiHookDataChannel
This commit is contained in:
@@ -34,6 +34,7 @@ const navigationLinks = {
|
||||
baseApiPath + 'hook/xposed/prefs/data/PrefsData',
|
||||
baseApiPath + 'hook/xposed/channel/YukiHookDataChannel',
|
||||
baseApiPath + 'hook/xposed/channel/data/ChannelData',
|
||||
baseApiPath + 'hook/xposed/channel/priority/ChannelPriority',
|
||||
baseApiPath + 'hook/xposed/application/ModuleApplication',
|
||||
baseApiPath + 'hook/xposed/parasitic/activity/base/ModuleAppActivity',
|
||||
baseApiPath + 'hook/xposed/parasitic/activity/base/ModuleAppCompatActivity',
|
||||
|
@@ -105,11 +105,11 @@ fun put(key: String)
|
||||
### wait <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun <T> wait(key: String, result: (value: T) -> Unit)
|
||||
fun <T> wait(key: String, priority: ChannelPriority?, result: (value: T) -> Unit)
|
||||
```
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun <T> wait(data: ChannelData<T>, result: (value: T) -> Unit)
|
||||
fun <T> wait(data: ChannelData<T>, priority: ChannelPriority?, result: (value: T) -> Unit)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
@@ -120,6 +120,10 @@ fun <T> wait(data: ChannelData<T>, result: (value: T) -> Unit)
|
||||
|
||||
移除默认值 `value`
|
||||
|
||||
`v1.1.5` `modified`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 获取键值数据。
|
||||
@@ -127,13 +131,17 @@ fun <T> wait(data: ChannelData<T>, result: (value: T) -> Unit)
|
||||
### wait <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun wait(key: String, callback: () -> Unit)
|
||||
fun wait(key: String, priority: ChannelPriority?, callback: () -> Unit)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.0.88` `added`
|
||||
|
||||
`v1.1.5` `modified`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 仅获取监听结果,不获取键值数据。
|
||||
@@ -147,13 +155,17 @@ fun wait(key: String, callback: () -> Unit)
|
||||
### checkingVersionEquals <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun checkingVersionEquals(result: (Boolean) -> Unit)
|
||||
fun checkingVersionEquals(priority: ChannelPriority?, result: (Boolean) -> Unit)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.0.88` `added`
|
||||
|
||||
`v1.1.5` `modified`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 获取模块与宿主的版本是否匹配。
|
||||
@@ -163,13 +175,17 @@ fun checkingVersionEquals(result: (Boolean) -> Unit)
|
||||
### obtainLoggerInMemoryData <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun obtainLoggerInMemoryData(result: (ArrayList<YukiLoggerData>) -> Unit)
|
||||
fun obtainLoggerInMemoryData(priority: ChannelPriority?, result: (ArrayList<YukiLoggerData>) -> Unit)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.1.4` `added`
|
||||
|
||||
`v1.1.5` `modified`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 获取模块与宿主之间的 `ArrayList<YukiLoggerData>` 数据。
|
||||
|
@@ -0,0 +1,27 @@
|
||||
---
|
||||
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.
|
||||
|
||||
:::
|
||||
|
||||
# ChannelPriority <span class="symbol">- class</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
class ChannelPriority(private val conditions: () -> Boolean)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.1.5` `added`
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 数据通讯桥响应优先级构造类。
|
||||
|
||||
这个类是对 `YukiHookDataChannel` 的一个扩展用法。
|
@@ -97,11 +97,11 @@ fun put(key: String)
|
||||
### wait <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun <T> wait(key: String, result: (value: T) -> Unit)
|
||||
fun <T> wait(key: String, priority: ChannelPriority?, result: (value: T) -> Unit)
|
||||
```
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun <T> wait(data: ChannelData<T>, result: (value: T) -> Unit)
|
||||
fun <T> wait(data: ChannelData<T>, priority: ChannelPriority?, result: (value: T) -> Unit)
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
@@ -112,6 +112,10 @@ fun <T> wait(data: ChannelData<T>, result: (value: T) -> Unit)
|
||||
|
||||
移除默认值 `value`
|
||||
|
||||
`v1.1.5` `修改`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 获取键值数据。
|
||||
@@ -119,13 +123,17 @@ fun <T> wait(data: ChannelData<T>, result: (value: T) -> Unit)
|
||||
### wait <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun wait(key: String, callback: () -> Unit)
|
||||
fun wait(key: String, priority: ChannelPriority?, callback: () -> Unit)
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0.88` `新增`
|
||||
|
||||
`v1.1.5` `修改`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 仅获取监听结果,不获取键值数据。
|
||||
@@ -139,13 +147,17 @@ fun wait(key: String, callback: () -> Unit)
|
||||
### checkingVersionEquals <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun checkingVersionEquals(result: (Boolean) -> Unit)
|
||||
fun checkingVersionEquals(priority: ChannelPriority?, result: (Boolean) -> Unit)
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0.88` `新增`
|
||||
|
||||
`v1.1.5` `修改`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 获取模块与宿主的版本是否匹配。
|
||||
@@ -155,13 +167,17 @@ fun checkingVersionEquals(result: (Boolean) -> Unit)
|
||||
### obtainLoggerInMemoryData <span class="symbol">- method</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun obtainLoggerInMemoryData(result: (ArrayList<YukiLoggerData>) -> Unit)
|
||||
fun obtainLoggerInMemoryData(priority: ChannelPriority?, result: (ArrayList<YukiLoggerData>) -> Unit)
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.1.4` `新增`
|
||||
|
||||
`v1.1.5` `修改`
|
||||
|
||||
新增 `priority` 参数
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 获取模块与宿主之间的 `ArrayList<YukiLoggerData>` 数据。
|
||||
|
@@ -0,0 +1,19 @@
|
||||
---
|
||||
pageClass: code-page
|
||||
---
|
||||
|
||||
# ChannelPriority <span class="symbol">- class</span>
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
class ChannelPriority(private val conditions: () -> Boolean)
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.1.5` `新增`
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 数据通讯桥响应优先级构造类。
|
||||
|
||||
这个类是对 `YukiHookDataChannel` 的一个扩展用法。
|
Reference in New Issue
Block a user