Skip to main content

KeyboardType

The type of information for which to optimize the text input control.

On Android, behavior may vary across device and keyboard provider.

Inherits: enum.Enum

Properties

  • DATETIME - Optimized for date and time information.
  • EMAIL - Optimized for email addresses.
  • MULTILINE - Optimized for multiline textual information.
  • NAME - Optimized for a person's name.
  • NONE - Prevents the OS from showing the on-screen virtual keyboard.
  • NUMBER - Optimized for unsigned numerical information without a decimal point.
  • PHONE - Optimized for telephone numbers.
  • STREET_ADDRESS - Optimized for postal mailing addresses.
  • TEXT - Optimized for textual information.
  • TWITTER - Optimized for social media.
  • URL - Optimized for URLs.
  • VISIBLE_PASSWORD - Optimized for passwords that are visible to the user.
  • WEB_SEARCH - Optimized for web searches.

Properties

DATETIMEclass-attributeinstance-attribute

Optimized for date and time information.

  • On iOS, requests the default keyboard.
  • On Android, requests a keyboard with ready access to the number keys, ":", and "-".

EMAILclass-attributeinstance-attribute

Optimized for email addresses.

Requests a keyboard with ready access to the "@" and "." keys.

MULTILINEclass-attributeinstance-attribute

Optimized for multiline textual information.

Requests the default platform keyboard, but accepts newlines when the enter key is pressed. This is the input type used for all multiline text fields.

NAMEclass-attributeinstance-attribute

Optimized for a person's name.

NONEclass-attributeinstance-attribute

Prevents the OS from showing the on-screen virtual keyboard.

NUMBERclass-attributeinstance-attribute

Optimized for unsigned numerical information without a decimal point.

Requests a default keyboard with ready access to the number keys.

PHONEclass-attributeinstance-attribute

Optimized for telephone numbers.

Requests a keyboard with ready access to the number keys, "*", and "#".

STREET_ADDRESSclass-attributeinstance-attribute

Optimized for postal mailing addresses.

TEXTclass-attributeinstance-attribute

Optimized for textual information.

Requests the default platform keyboard.

TWITTERclass-attributeinstance-attribute

Optimized for social media.

Requests a keyboard that includes keys useful for handles and tags.

  • On iOS, requests a default keyboard with ready access to the "@" and "#" keys.
  • On Android this is remapped to the EMAIL keyboard type as it always shows the "@" key.

URLclass-attributeinstance-attribute

Optimized for URLs.

Requests a keyboard with ready access to the "/" and "." keys.

VISIBLE_PASSWORDclass-attributeinstance-attribute

Optimized for passwords that are visible to the user.

Requests a keyboard with ready access to both letters and numbers.

Optimized for web searches.

Requests a keyboard that includes keys useful for web searches as well as URLs.

  • On iOS, requests a default keyboard with ready access to the "." key. In contrast to URL, a space bar is available.
  • On Android this is remapped to the URL keyboard type as it always shows a space bar.