| java.lang.Object | |
| ↳ | android.view.KeyCharacterMap |
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| KeyCharacterMap.KeyData | |||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | ALPHA | A keyboard with all the letters, and maybe some numbers. | |||||||||
| int | BUILT_IN_KEYBOARD | The id of the device's primary built in keyboard is always 0. | |||||||||
| int | COMBINING_ACCENT | ||||||||||
| int | COMBINING_ACCENT_MASK | Mask the return value from get(int, int) with this value to get a printable representation of the accent character of a "dead key." | |||||||||
| char | HEX_INPUT | This private-use character is used to trigger Unicode character input by hex digits. | |||||||||
| int | NUMERIC | A numeric (12-key) keyboard. | |||||||||
| char | PICKER_DIALOG_INPUT | This private-use character is used to bring up a character picker for miscellaneous symbols. | |||||||||
| int | PREDICTIVE | A keyboard with all the letters, but with more than one letter per key. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Unicode character that the specified key would produce when the specified meta bits (see MetaKeyKeyListener) were active. | |||||||||||
Get the character that is produced by putting accent on the character
c.
| |||||||||||
Get the primary character for this key.
| |||||||||||
Get an array of KeyEvent objects that if put into the input stream
could plausibly generate the provided sequence of characters.
| |||||||||||
Get the characters conversion data for a given keyCode.
| |||||||||||
If one of the chars in the array can be generated by keyCode,
return the char; otherwise return '\0'.
| |||||||||||
The same as getMatch(keyCode, chars, 0).
| |||||||||||
Gets the number or symbol associated with the key.
| |||||||||||
Does this character key produce a glyph?
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
A keyboard with all the letters, and maybe some numbers.
The id of the device's primary built in keyboard is always 0.
Mask the return value from get(int, int) with this value to get a printable representation of the accent character of a "dead key."
This private-use character is used to trigger Unicode character input by hex digits.
A numeric (12-key) keyboard.
This private-use character is used to bring up a character picker for miscellaneous symbols.
A keyboard with all the letters, but with more than one letter per key.
Returns the Unicode character that the specified key would produce when the specified meta bits (see MetaKeyKeyListener) were active.
Returns 0 if the key is not one that is used to type Unicode characters.
If the return value has bit COMBINING_ACCENT set, the key is a "dead key" that should be combined with another to actually produce a character -- see getDeadChar(int, int) -- after masking with COMBINING_ACCENT_MASK.
Get the character that is produced by putting accent on the character c. For example, getDeadChar('`', 'e') returns è.
Get the primary character for this key. In other words, the label that is physically printed on it.
Get an array of KeyEvent objects that if put into the input stream could plausibly generate the provided sequence of characters. It is not guaranteed that the sequence is the only way to generate these events or that it is optimal.
Get the characters conversion data for a given keyCode.
| keyCode | the keyCode to look for |
|---|---|
| results | a KeyCharacterMap.KeyData that will be filled with the results. |
Returns NUMERIC, PREDICTIVE or ALPHA.
If one of the chars in the array can be generated by keyCode, return the char; otherwise return '\0'.
| keyCode | the key code to look at |
|---|---|
| chars | the characters to try to find |
| modifiers | the modifier bits to prefer. If any of these bits are set, if there are multiple choices, that could work, the one for this modifier will be set. |
The same as getMatch(keyCode, chars, 0).
Gets the number or symbol associated with the key. The character value is returned, not the numeric value. If the key is not a number, but is a symbol, the symbol is retuned.
Does this character key produce a glyph?
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. Subclasses can use this facility to guarantee that any associated resources are cleaned up before the receiver is garbage collected. Uncaught exceptions which are thrown during the running of the method cause it to terminate immediately, but are otherwise ignored.
Note: The virtual machine assumes that the implementation in class Object is empty.
| Throwable |
|---|