KeyboardTypes

interface KeyboardTypes

提供了一组预定义的键盘类型(KeyboardType)。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getAscii(): KeyboardType

用于请求能输入 ASCII 字符的键盘。

Link copied to clipboard
abstract fun getDecimal(): KeyboardType

用于请求能输入小数的键盘(应包含小数点)。

Link copied to clipboard
abstract fun getEmail(): KeyboardType

用于请求能输入电子邮件地址的键盘。

Link copied to clipboard
abstract fun getNumber(): KeyboardType

用于请求能输入数字的键盘。

Link copied to clipboard

用于请求能输入数字密码的键盘。

Link copied to clipboard
abstract fun getPassword(): KeyboardType

用于请求能输入密码的键盘。

Link copied to clipboard
abstract fun getPhone(): KeyboardType

用于请求能输入电话号码的键盘。

Link copied to clipboard
abstract fun getText(): KeyboardType

用于请求显示常规文本键盘。

Link copied to clipboard

未指定键盘类型。

Link copied to clipboard
abstract fun getUri(): KeyboardType

用于请求能输入 URI 的键盘。