| Package | Description |
|---|---|
| com.github.liuyueyi.quick.transfer | |
| com.github.liuyueyi.quick.transfer.constants | |
| com.github.liuyueyi.quick.transfer.dictionary |
| Modifier and Type | Method and Description |
|---|---|
static void |
ChineseUtils.preLoad(boolean async,
TransType... types)
预热,加载字体词典,支持后台线程加载,避免阻塞主线程(适用于先加载,后使用的场景)
|
static void |
ChineseUtils.preLoad(TransType... transType)
预热,加载字体词典
|
static String |
ChineseUtils.transfer(String content,
TransType type)
通用简繁简繁转换接口
|
static void |
ChineseUtils.unLoad(TransType... transTypes)
下载不用的词典
|
| Modifier and Type | Method and Description |
|---|---|
static TransType |
TransType.typeOf(String type) |
static TransType |
TransType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransType[] |
TransType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
BasicDictionary |
DictionaryContainer.getDictionary(TransType transType)
获取词典
|
void |
DictionaryContainer.unloadDictionary(TransType transType)
卸载字典,减少内存占用开销
|
Copyright © 2022. All rights reserved.