| Package | qnx.ui.text |
| Class | public class KeyboardType |
| Inheritance | KeyboardType Object |
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
| Constant | Defined 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 | ||
| DEFAULT | Constant |
public static const DEFAULT:String = defaultThe default keyboard layout.
| Constant |
public static const EMAIL:String = emailThe email-specific keyboard layout.
| PHONE | Constant |
public static const PHONE:String = phoneThe phone-specific keyboard layout.
| PIN | Constant |
public static const PIN:String = pinThe PIN-specific keyboard layout.
| URL | Constant |
public static const URL:String = urlThe URL-specific keyboard layout (for entering web addresses).