Notice
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.
- object
YukiReflectionobject YukiReflection
Change Records
v1.0.0
first
Function Illustrate
这是
YukiReflection
的装载调用类。
- field
API_VERSION_NAMEconst val API_VERSION_NAME: String
Change Records
v1.0.0
first
Function Illustrate
获取当前
YukiReflection
的版本。
- field
API_VERSION_CODEconst val API_VERSION_CODE: Int
Change Records
v1.0.0
first
Function Illustrate
获取当前
YukiReflection
的版本号。
- object
Configsobject Configs
Change Records
v1.0.0
first
Function Illustrate
对 API 相关功能的配置类。
- field
debugTagvar debugTag: String
Change Records
v1.0.0
first
Function Illustrate
这是一个调试日志的全局标识。
默认文案为 YukiReflection
。
你可以修改为你自己的文案。
- field
isDebugvar isDebug: Boolean
Change Records
v1.0.0
first
Function Illustrate
是否启用 Debug 模式。
默认不启用,启用后将交由日志输出管理器打印详细日志 (例如反射查找功能的耗时) 到控制台。
请过滤 debugTag
即可找到每条日志。
- field
isAllowPrintingLogsvar isAllowPrintingLogs: Boolean
Change Records
v1.0.0
first
Function Illustrate
是否启用调试日志的输出功能。
Notice
关闭后将会停用 YukiReflection 对全部日志的输出。
isEnableMemberCache - field
Change Records
v1.0.0
first
v1.0.2
deprecated
Member
的直接缓存功能已被移除,因为其存在内存溢出 (OOM) 问题
- method
configsinline fun configs(initiate: Configs.() -> Unit)
Change Records
v1.0.0
first
Function Illustrate
对
Configs
类实现了一个lambda
方法体。
你可以轻松地调用它进行配置。