SmsRequest

interface SmsRequest

服务器要求短信验证时提供的账号绑定的手机信息. 使用 requestSms 来请求发送验证码.

Since

2.13

See also

Functions

Link copied to clipboard
abstract suspend fun requestSms()

请求服务器发送短信到验证手机号

Link copied to clipboard
abstract fun solved(code: String): DeviceVerificationResult

通知此请求已被解决. 获取 DeviceVerificationResult 用于返回 LoginSolver.onSolveDeviceVerification.

Properties

Link copied to clipboard
abstract val countryCode: String?

手机号归属国家代码, 如中国为 86. 在获取失败时会返回 null,但通常会获取到

Link copied to clipboard
abstract val phoneNumber: String?

手机号码, 部分数字会被隐藏, 示例: 123*******1. 在获取失败时会返回 null, 但通常会获取到