mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 01:35:17 +08:00
Added new registerReceiver function and fix Host App lifecycle events call multiple times in AppLifecycle in PackageParam
This commit is contained in:
@@ -1151,10 +1151,18 @@ fun onConfigurationChanged(result: (self: Application, config: Configuration) ->
|
||||
fun registerReceiver(vararg action: String, result: (context: Context, intent: Intent) -> Unit)
|
||||
```
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun registerReceiver(filter: IntentFilter, result: (context: Context, intent: Intent) -> Unit)
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.0.88` `added`
|
||||
|
||||
`v1.1.7` `modified`
|
||||
|
||||
新增直接使用 `IntentFilter` 注册系统广播监听
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 注册系统广播监听。
|
@@ -1143,10 +1143,18 @@ fun onConfigurationChanged(result: (self: Application, config: Configuration) ->
|
||||
fun registerReceiver(vararg action: String, result: (context: Context, intent: Intent) -> Unit)
|
||||
```
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
fun registerReceiver(filter: IntentFilter, result: (context: Context, intent: Intent) -> Unit)
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.0.88` `新增`
|
||||
|
||||
`v1.1.7` `修改`
|
||||
|
||||
新增直接使用 `IntentFilter` 注册系统广播监听
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 注册系统广播监听。
|
Reference in New Issue
Block a user