import{_ as e,o as s,c as n,a}from"./app.2add9aa5.js";const o={},l=a(`
The basic configuration method of
YukiReflection
is introduced here.
YukiReflection
can be used directly without some complex configuration, and does not conflict with Java
's native Reflection API.
You can configure some functions of YukiReflection
before using it.
You can get the current API version of YukiReflection
as follows.
The following example
// Get the version name
val versionName = YukiReflection. API_VERSION_NAME
// Get the version code
val versionCode = YukiReflection. API_VERSION_CODE
You can judge the difference between different versions or display it in the about information by obtaining the version.
Tips
For more functions, please refer to YukiReflection.
You can configure related functions through YukiReflection.configs { ... }
method or YukiReflection.Configs
.
You can use the following methods to customize the tag of the debug log.
Logs inside the API will be printed using this tag.
The following example
// Via the configs method
YukiReflection.configs {
debugTag = "YourCustomTag"
}
// Set directly
YukiReflection.Configs.debugTag = "YourCustomTag"
You can use the following methods to enable or disable Debug mode.
The Debug mode is disabled by default, and when enabled, detailed logs (such as the time spent on the reflective search function) will be printed to the console.
The following example
// Via the configs method
YukiReflection.configs {
isDebug = true
}
// Set directly
YukiReflection.Configs.isDebug = true
You can use the following methods to enable or disable debug logs.
This function is enabled by default, and disable will stop YukiReflection
output all logs.
The following example
// Via the configs method
YukiReflection.configs {
isAllowPrintingLogs = true
}
// Set directly
YukiReflection.Configs.isAllowPrintingLogs = true
In order to configure multiple features at once, you can directly use the YukiReflection.configs { ... }
method to configure.
The following example
YukiReflection.configs {
debugTag = "YourCustomTag"
isDebug = true
isAllowPrintingLogs = true
}
Tips
For more functions, please refer to YukiReflection.configs method, YukiReflection.Configs.