Packageqnx.ui.text
Classpublic class KeyboardType
InheritanceKeyboardType Inheritance Object

The KeyboardType class contains constants that define the layout of the keyboard that appears when the user clicks in a textInput component. For example, you can enable an email-specific keyboard when the user clicks in a textInput component that takes an email address.

The following code listing creates an email-specific keyboard:

     firstInput = new TextInput;
     firstInput.keyboardType = KeyboardType.EMAIL;
     firstInput.width = 200;
     

See also

ReturnKeyType


Public Constants
 ConstantDefined By
  DEFAULT : String = default
[static] The default keyboard layout.
KeyboardType
  EMAIL : String = email
[static] The email-specific keyboard layout.
KeyboardType
  PHONE : String = phone
[static] The phone-specific keyboard layout.
KeyboardType
  PIN : String = pin
[static] The PIN-specific keyboard layout.
KeyboardType
  URL : String = url
[static] The URL-specific keyboard layout (for entering web addresses).
KeyboardType
Constant Detail
DEFAULTConstant
public static const DEFAULT:String = default

The default keyboard layout.

EMAILConstant 
public static const EMAIL:String = email

The email-specific keyboard layout.

PHONEConstant 
public static const PHONE:String = phone

The phone-specific keyboard layout.

PINConstant 
public static const PIN:String = pin

The PIN-specific keyboard layout.

URLConstant 
public static const URL:String = url

The URL-specific keyboard layout (for entering web addresses).