{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

KeyboardType.Companion

public static class KeyboardType.Companion


Summary

Public methods

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting ASCII characters.

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting decimals.

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting email addresses.

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting digits.

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting number password.

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting password.

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting phone numbers.

static final @NonNull KeyboardType

A keyboard type used to request an IME that shows regular keyboard.

static final @NonNull KeyboardType

A keyboard type used to request an IME that is capable of inputting URIs.

Public methods

getAscii

public static final @NonNull KeyboardType getAscii()

A keyboard type used to request an IME that is capable of inputting ASCII characters.

getDecimal

public static final @NonNull KeyboardType getDecimal()

A keyboard type used to request an IME that is capable of inputting decimals. IME should explicitly provide a decimal separator as input, which is not assured by KeyboardType.Number.

getEmail

public static final @NonNull KeyboardType getEmail()

A keyboard type used to request an IME that is capable of inputting email addresses.

getNumber

public static final @NonNull KeyboardType getNumber()

A keyboard type used to request an IME that is capable of inputting digits. IME may provide inputs other than digits but it is not guaranteed.

See also
Decimal

getNumberPassword

public static final @NonNull KeyboardType getNumberPassword()

A keyboard type used to request an IME that is capable of inputting number password.

getPassword

public static final @NonNull KeyboardType getPassword()

A keyboard type used to request an IME that is capable of inputting password.

getPhone

public static final @NonNull KeyboardType getPhone()

A keyboard type used to request an IME that is capable of inputting phone numbers.

getText

public static final @NonNull KeyboardType getText()

A keyboard type used to request an IME that shows regular keyboard.

getUri

public static final @NonNull KeyboardType getUri()

A keyboard type used to request an IME that is capable of inputting URIs.