mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-01 08:15:37 +08:00
refactor: allow any incoming to log in YLog
This commit is contained in:
@@ -91,4 +91,8 @@ Now this method will be useless and will not be called back. If necessary, pleas
|
||||
|
||||
`YukiHookAPI` Starting with `1.3.0`, the way in which the module `Activity` behavior has changed.
|
||||
|
||||
Please read [Register Module App's Activity](../api/special-features/host-inject#register-module-app-s-activity) for more information.
|
||||
Please read [Register Module App's Activity](../api/special-features/host-inject#register-module-app-s-activity) for more information.
|
||||
|
||||
## YLog Behavior Change
|
||||
|
||||
`YukiHookAPI` allows the `msg` parameter of `YLog` to be passed into any object starting from `1.3.0`, and they will be automatically converted using the `toString()` method.
|
@@ -85,4 +85,8 @@ val instance: Any
|
||||
|
||||
`YukiHookAPI` 从 `1.3.0` 版本开始,注册模块 `Activity` 行为的方式发生了变更。
|
||||
|
||||
请阅读 [注册模块 Activity](../api/special-features/host-inject#注册模块-activity) 以了解更多信息。
|
||||
请阅读 [注册模块 Activity](../api/special-features/host-inject#注册模块-activity) 以了解更多信息。
|
||||
|
||||
## YLog 行为变更
|
||||
|
||||
`YukiHookAPI` 从 `1.3.0` 版本开始允许 `YLog` 的 `msg` 参数传入任意对象,它们都会自动使用 `toString()` 方法进行转换。
|
Reference in New Issue
Block a user