Package-level declarations
Types
Link copied to clipboard
interface I18nable
允许对象通过 i18n 获取 I18nService。
Link copied to clipboard
interface JsonStorable
Link copied to clipboard
interface ObjectStorable
允许对象通过 objects 获取 ObjectStorage。
Link copied to clipboard
class ServiceRegistry(val trace: (KClass<*>) -> TraceRecorder, val store: (KClass<*>) -> JsonStore, lazyObjects: () -> ObjectStorage, lazySetting: () -> SettingService, lazyI18n: () -> I18nService)
请不要构造此类或访问此类的伴生对象。
Link copied to clipboard
interface Settable
允许对象通过 setting 获取 SettingService。
Link copied to clipboard
interface Traceable
允许对象通过 trace 获取 TraceRecorder。
Properties
Link copied to clipboard
值为 autotweaker。
Link copied to clipboard
存储配置及其他数据的目录,请使用提供的持久化 API 而不是直接在此路径下存放文件。
Link copied to clipboard
获取 AutoTweaker 提供的 I18nService。
Link copied to clipboard
获取 AutoTweaker 提供的 ObjectStorage。
Link copied to clipboard
用于加载插件 jar 的目录,此目录中只有以 .jar 结尾的文件会被加载,jar 或 class 损坏的文件不会被加载。
Link copied to clipboard
获取 AutoTweaker 提供的 SettingService。
Link copied to clipboard
获取 AutoTweaker 提供的 TraceRecorder,自身作为 origin。
Functions
Link copied to clipboard
打印一条用于临时调试的 error 级别日志,特殊的命名便于通过自动化脚本扫描。
Link copied to clipboard
inline suspend fun <K, V> Map<K, V>.forEachParallel(crossinline action: suspend (Map.Entry<K, V>) -> Unit)
inline suspend fun <T> Array<T>.forEachParallel(limit: Int, crossinline action: suspend (T) -> Unit)
inline suspend fun <T> Iterable<T>.forEachParallel(limit: Int, crossinline action: suspend (T) -> Unit)
Link copied to clipboard
请不要调用此方法。
Link copied to clipboard
如果 CharSequence 为空,返回 null,否则返回 CharSequence 本身。
如果 Collection 为空,返回 null,否则返回 Collection 本身。