1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-25 06:50:09 +08:00

Improve docs

This commit is contained in:
Him188 2020-12-20 09:46:14 +08:00
parent 51703eb8ba
commit 565abae671

View File

@ -71,13 +71,11 @@ public abstract class LoginSolver {
*
* 检测策略:
* 1. 检测 `android.util.Log`, 如果存在, 返回 `null`.
* 2. 检测 JVM 属性 `mirai.no-desktop`. 若存在, 返回 []
* 2. 检测 JVM 桌面环境,
* 2. 检测 JVM 属性 `mirai.no-desktop`. 若存在, 返回 [StandardCharImageLoginSolver]
* 3. 检测 JVM 桌面环境, 若支持, 返回 [SwingSolver]
* 4. 返回 [StandardCharImageLoginSolver]
*
* 在桌面 JVM, Mirai 会检测 Java Swing, 在可用时首选 [SwingSolver]. 可以通过 `System.setProperty("mirai.no-desktop", "true")` 关闭
* Android, mirai 检测 `android.util.Log`. 然后
*
* @return [SwingSolver]
* @return [SwingSolver] [StandardCharImageLoginSolver] `null`
*/
@JvmField
public val Default: LoginSolver? = when (WindowHelperJvm.platformKind) {