refactor: allow any incoming to log in YLog

This commit is contained in:
2025-06-19 15:22:05 +08:00
parent 311926b3cb
commit 6b08287991
3 changed files with 26 additions and 18 deletions

View File

@@ -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.

View File

@@ -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()` 方法进行转换。