android.view
Class KeyCharacterMap

java.lang.Object
  extended by android.view.KeyCharacterMap
All Implemented Interfaces:
Parcelable

public class KeyCharacterMap
extends Object
implements Parcelable


Nested Class Summary
static class KeyCharacterMap.KeyData
          Deprecated. 
static class KeyCharacterMap.UnavailableException
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static int ALPHA
           
static int BUILT_IN_KEYBOARD
          Deprecated. 
static int COMBINING_ACCENT
           
static int COMBINING_ACCENT_MASK
           
static Parcelable.Creator<KeyCharacterMap> CREATOR
           
static int FULL
           
static char HEX_INPUT
           
static int MODIFIER_BEHAVIOR_CHORDED
           
static int MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED
           
static int NUMERIC
           
static char PICKER_DIALOG_INPUT
           
static int PREDICTIVE
           
static int SPECIAL_FUNCTION
           
static int VIRTUAL_KEYBOARD
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 int describeContents()
           
static boolean deviceHasKey(int keyCode)
           
static boolean[] deviceHasKeys(int[] keyCodes)
           
protected  void finalize()
           
 int get(int keyCode, int metaState)
           
static int getDeadChar(int accent, int c)
           
 char getDisplayLabel(int keyCode)
           
 KeyEvent[] getEvents(char[] chars)
           
 int getKeyboardType()
           
 boolean getKeyData(int keyCode, KeyCharacterMap.KeyData results)
          Deprecated. 
 char getMatch(int keyCode, char[] chars)
           
 char getMatch(int keyCode, char[] chars, int metaState)
           
 int getModifierBehavior()
           
 char getNumber(int keyCode)
           
 boolean isPrintingKey(int keyCode)
           
static KeyCharacterMap load(int deviceId)
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILT_IN_KEYBOARD

@Deprecated
public static final int BUILT_IN_KEYBOARD
Deprecated. 
See Also:
Constant Field Values

VIRTUAL_KEYBOARD

public static final int VIRTUAL_KEYBOARD
See Also:
Constant Field Values

NUMERIC

public static final int NUMERIC
See Also:
Constant Field Values

PREDICTIVE

public static final int PREDICTIVE
See Also:
Constant Field Values

ALPHA

public static final int ALPHA
See Also:
Constant Field Values

FULL

public static final int FULL
See Also:
Constant Field Values

SPECIAL_FUNCTION

public static final int SPECIAL_FUNCTION
See Also:
Constant Field Values

HEX_INPUT

public static final char HEX_INPUT
See Also:
Constant Field Values

PICKER_DIALOG_INPUT

public static final char PICKER_DIALOG_INPUT
See Also:
Constant Field Values

MODIFIER_BEHAVIOR_CHORDED

public static final int MODIFIER_BEHAVIOR_CHORDED
See Also:
Constant Field Values

MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED

public static final int MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED
See Also:
Constant Field Values

COMBINING_ACCENT

public static final int COMBINING_ACCENT
See Also:
Constant Field Values

COMBINING_ACCENT_MASK

public static final int COMBINING_ACCENT_MASK
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator<KeyCharacterMap> CREATOR
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

load

public static KeyCharacterMap load(int deviceId)

get

public int get(int keyCode,
               int metaState)

getNumber

public char getNumber(int keyCode)

getMatch

public char getMatch(int keyCode,
                     char[] chars)

getMatch

public char getMatch(int keyCode,
                     char[] chars,
                     int metaState)

getDisplayLabel

public char getDisplayLabel(int keyCode)

getDeadChar

public static int getDeadChar(int accent,
                              int c)

getKeyData

@Deprecated
public boolean getKeyData(int keyCode,
                                     KeyCharacterMap.KeyData results)
Deprecated. 


getEvents

public KeyEvent[] getEvents(char[] chars)

isPrintingKey

public boolean isPrintingKey(int keyCode)

getKeyboardType

public int getKeyboardType()

getModifierBehavior

public int getModifierBehavior()

deviceHasKey

public static boolean deviceHasKey(int keyCode)

deviceHasKeys

public static boolean[] deviceHasKeys(int[] keyCodes)

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable


Copyright © 2008-2012. All Rights Reserved.