Build m5-rc15

android.view
Class KeyEvent

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

public class KeyEvent
extends Object
implements Parcelable


Nested Class Summary
static interface KeyEvent.Callback
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator
 
Field Summary
static int ACTION_DOWN
           
static int ACTION_MULTIPLE
           
static int ACTION_UP
           
static Parcelable.Creator CREATOR
           
static int KEYCODE_0
           
static int KEYCODE_1
           
static int KEYCODE_2
           
static int KEYCODE_3
           
static int KEYCODE_4
           
static int KEYCODE_5
           
static int KEYCODE_6
           
static int KEYCODE_7
           
static int KEYCODE_8
           
static int KEYCODE_9
           
static int KEYCODE_A
           
static int KEYCODE_ALT
           
static int KEYCODE_APOSTROPHE
           
static int KEYCODE_AT
           
static int KEYCODE_B
           
static int KEYCODE_BACK
           
static int KEYCODE_BACKSLASH
           
static int KEYCODE_C
           
static int KEYCODE_CALL
           
static int KEYCODE_CAMERA
           
static int KEYCODE_CAP
           
static int KEYCODE_CLEAR
           
static int KEYCODE_COMMA
           
static int KEYCODE_D
           
static int KEYCODE_DEL
           
static int KEYCODE_DPAD_CENTER
           
static int KEYCODE_DPAD_DOWN
           
static int KEYCODE_DPAD_LEFT
           
static int KEYCODE_DPAD_RIGHT
           
static int KEYCODE_DPAD_UP
           
static int KEYCODE_E
           
static int KEYCODE_ENDCALL
           
static int KEYCODE_ENVELOPE
           
static int KEYCODE_EQUALS
           
static int KEYCODE_EXPLORER
           
static int KEYCODE_F
           
static int KEYCODE_FOCUS
           
static int KEYCODE_G
           
static int KEYCODE_GRAVE
           
static int KEYCODE_H
           
static int KEYCODE_HEADSETHOOK
           
static int KEYCODE_HOME
           
static int KEYCODE_I
           
static int KEYCODE_J
           
static int KEYCODE_K
           
static int KEYCODE_L
           
static int KEYCODE_LEFT_BRACKET
           
static int KEYCODE_M
           
static int KEYCODE_MINUS
           
static int KEYCODE_N
           
static int KEYCODE_NEWLINE
           
static int KEYCODE_NUM
           
static int KEYCODE_O
           
static int KEYCODE_P
           
static int KEYCODE_PERIOD
           
static int KEYCODE_PLUS
           
static int KEYCODE_POUND
           
static int KEYCODE_POWER
           
static int KEYCODE_Q
           
static int KEYCODE_R
           
static int KEYCODE_RIGHT_BRACKET
           
static int KEYCODE_S
           
static int KEYCODE_SEMICOLON
           
static int KEYCODE_SLASH
           
static int KEYCODE_SOFT_LEFT
           
static int KEYCODE_SOFT_RIGHT
           
static int KEYCODE_SPACE
           
static int KEYCODE_STAR
           
static int KEYCODE_SYM
           
static int KEYCODE_T
           
static int KEYCODE_TAB
           
static int KEYCODE_U
           
static int KEYCODE_UNKNOWN
           
static int KEYCODE_V
           
static int KEYCODE_VOLUME_DOWN
           
static int KEYCODE_VOLUME_UP
           
static int KEYCODE_W
           
static int KEYCODE_X
           
static int KEYCODE_Y
           
static int KEYCODE_Z
           
static int MAX_KEYCODE
           
static int META_ALT_ON
           
static int META_CAP_ON
           
static int META_SYM_ON
           
 
Constructor Summary
KeyEvent(int action, int code)
           
KeyEvent(KeyEvent origEvent, long eventTime, int newRepeat)
           
KeyEvent(long downTime, long eventTime, int action, int code, int repeat)
           
 
Method Summary
 boolean dispatch(KeyEvent.Callback receiver)
           
 int getAction()
           
 int getDeviceId()
           
 long getDownTime()
           
 long getEventTime()
           
 int getKeyboardDevice()
           
 int getKeyCode()
           
 int getMetaState()
           
 int getRepeatCount()
           
 int getScanCode()
           
 boolean isAltPressed()
           
 boolean isCapPressed()
           
 boolean isDown()
           
static boolean isModifierKey(int keyCode)
           
 boolean isSymPressed()
           
 boolean isSystem()
           
 String toString()
           
 void writeToParcel(Parcel out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEYCODE_UNKNOWN

public static final int KEYCODE_UNKNOWN
See Also:
Constant Field Values

KEYCODE_SOFT_LEFT

public static final int KEYCODE_SOFT_LEFT
See Also:
Constant Field Values

KEYCODE_SOFT_RIGHT

public static final int KEYCODE_SOFT_RIGHT
See Also:
Constant Field Values

KEYCODE_HOME

public static final int KEYCODE_HOME
See Also:
Constant Field Values

KEYCODE_BACK

public static final int KEYCODE_BACK
See Also:
Constant Field Values

KEYCODE_CALL

public static final int KEYCODE_CALL
See Also:
Constant Field Values

KEYCODE_ENDCALL

public static final int KEYCODE_ENDCALL
See Also:
Constant Field Values

KEYCODE_0

public static final int KEYCODE_0
See Also:
Constant Field Values

KEYCODE_1

public static final int KEYCODE_1
See Also:
Constant Field Values

KEYCODE_2

public static final int KEYCODE_2
See Also:
Constant Field Values

KEYCODE_3

public static final int KEYCODE_3
See Also:
Constant Field Values

KEYCODE_4

public static final int KEYCODE_4
See Also:
Constant Field Values

KEYCODE_5

public static final int KEYCODE_5
See Also:
Constant Field Values

KEYCODE_6

public static final int KEYCODE_6
See Also:
Constant Field Values

KEYCODE_7

public static final int KEYCODE_7
See Also:
Constant Field Values

KEYCODE_8

public static final int KEYCODE_8
See Also:
Constant Field Values

KEYCODE_9

public static final int KEYCODE_9
See Also:
Constant Field Values

KEYCODE_STAR

public static final int KEYCODE_STAR
See Also:
Constant Field Values

KEYCODE_POUND

public static final int KEYCODE_POUND
See Also:
Constant Field Values

KEYCODE_DPAD_UP

public static final int KEYCODE_DPAD_UP
See Also:
Constant Field Values

KEYCODE_DPAD_DOWN

public static final int KEYCODE_DPAD_DOWN
See Also:
Constant Field Values

KEYCODE_DPAD_LEFT

public static final int KEYCODE_DPAD_LEFT
See Also:
Constant Field Values

KEYCODE_DPAD_RIGHT

public static final int KEYCODE_DPAD_RIGHT
See Also:
Constant Field Values

KEYCODE_DPAD_CENTER

public static final int KEYCODE_DPAD_CENTER
See Also:
Constant Field Values

KEYCODE_VOLUME_UP

public static final int KEYCODE_VOLUME_UP
See Also:
Constant Field Values

KEYCODE_VOLUME_DOWN

public static final int KEYCODE_VOLUME_DOWN
See Also:
Constant Field Values

KEYCODE_POWER

public static final int KEYCODE_POWER
See Also:
Constant Field Values

KEYCODE_CAMERA

public static final int KEYCODE_CAMERA
See Also:
Constant Field Values

KEYCODE_CLEAR

public static final int KEYCODE_CLEAR
See Also:
Constant Field Values

KEYCODE_A

public static final int KEYCODE_A
See Also:
Constant Field Values

KEYCODE_B

public static final int KEYCODE_B
See Also:
Constant Field Values

KEYCODE_C

public static final int KEYCODE_C
See Also:
Constant Field Values

KEYCODE_D

public static final int KEYCODE_D
See Also:
Constant Field Values

KEYCODE_E

public static final int KEYCODE_E
See Also:
Constant Field Values

KEYCODE_F

public static final int KEYCODE_F
See Also:
Constant Field Values

KEYCODE_G

public static final int KEYCODE_G
See Also:
Constant Field Values

KEYCODE_H

public static final int KEYCODE_H
See Also:
Constant Field Values

KEYCODE_I

public static final int KEYCODE_I
See Also:
Constant Field Values

KEYCODE_J

public static final int KEYCODE_J
See Also:
Constant Field Values

KEYCODE_K

public static final int KEYCODE_K
See Also:
Constant Field Values

KEYCODE_L

public static final int KEYCODE_L
See Also:
Constant Field Values

KEYCODE_M

public static final int KEYCODE_M
See Also:
Constant Field Values

KEYCODE_N

public static final int KEYCODE_N
See Also:
Constant Field Values

KEYCODE_O

public static final int KEYCODE_O
See Also:
Constant Field Values

KEYCODE_P

public static final int KEYCODE_P
See Also:
Constant Field Values

KEYCODE_Q

public static final int KEYCODE_Q
See Also:
Constant Field Values

KEYCODE_R

public static final int KEYCODE_R
See Also:
Constant Field Values

KEYCODE_S

public static final int KEYCODE_S
See Also:
Constant Field Values

KEYCODE_T

public static final int KEYCODE_T
See Also:
Constant Field Values

KEYCODE_U

public static final int KEYCODE_U
See Also:
Constant Field Values

KEYCODE_V

public static final int KEYCODE_V
See Also:
Constant Field Values

KEYCODE_W

public static final int KEYCODE_W
See Also:
Constant Field Values

KEYCODE_X

public static final int KEYCODE_X
See Also:
Constant Field Values

KEYCODE_Y

public static final int KEYCODE_Y
See Also:
Constant Field Values

KEYCODE_Z

public static final int KEYCODE_Z
See Also:
Constant Field Values

KEYCODE_COMMA

public static final int KEYCODE_COMMA
See Also:
Constant Field Values

KEYCODE_PERIOD

public static final int KEYCODE_PERIOD
See Also:
Constant Field Values

KEYCODE_ALT

public static final int KEYCODE_ALT
See Also:
Constant Field Values

KEYCODE_CAP

public static final int KEYCODE_CAP
See Also:
Constant Field Values

KEYCODE_TAB

public static final int KEYCODE_TAB
See Also:
Constant Field Values

KEYCODE_SPACE

public static final int KEYCODE_SPACE
See Also:
Constant Field Values

KEYCODE_SYM

public static final int KEYCODE_SYM
See Also:
Constant Field Values

KEYCODE_EXPLORER

public static final int KEYCODE_EXPLORER
See Also:
Constant Field Values

KEYCODE_ENVELOPE

public static final int KEYCODE_ENVELOPE
See Also:
Constant Field Values

KEYCODE_NEWLINE

public static final int KEYCODE_NEWLINE
See Also:
Constant Field Values

KEYCODE_DEL

public static final int KEYCODE_DEL
See Also:
Constant Field Values

KEYCODE_GRAVE

public static final int KEYCODE_GRAVE
See Also:
Constant Field Values

KEYCODE_MINUS

public static final int KEYCODE_MINUS
See Also:
Constant Field Values

KEYCODE_EQUALS

public static final int KEYCODE_EQUALS
See Also:
Constant Field Values

KEYCODE_LEFT_BRACKET

public static final int KEYCODE_LEFT_BRACKET
See Also:
Constant Field Values

KEYCODE_RIGHT_BRACKET

public static final int KEYCODE_RIGHT_BRACKET
See Also:
Constant Field Values

KEYCODE_BACKSLASH

public static final int KEYCODE_BACKSLASH
See Also:
Constant Field Values

KEYCODE_SEMICOLON

public static final int KEYCODE_SEMICOLON
See Also:
Constant Field Values

KEYCODE_APOSTROPHE

public static final int KEYCODE_APOSTROPHE
See Also:
Constant Field Values

KEYCODE_SLASH

public static final int KEYCODE_SLASH
See Also:
Constant Field Values

KEYCODE_AT

public static final int KEYCODE_AT
See Also:
Constant Field Values

KEYCODE_NUM

public static final int KEYCODE_NUM
See Also:
Constant Field Values

KEYCODE_HEADSETHOOK

public static final int KEYCODE_HEADSETHOOK
See Also:
Constant Field Values

KEYCODE_FOCUS

public static final int KEYCODE_FOCUS
See Also:
Constant Field Values

KEYCODE_PLUS

public static final int KEYCODE_PLUS
See Also:
Constant Field Values

MAX_KEYCODE

public static final int MAX_KEYCODE
See Also:
Constant Field Values

ACTION_DOWN

public static final int ACTION_DOWN
See Also:
Constant Field Values

ACTION_UP

public static final int ACTION_UP
See Also:
Constant Field Values

ACTION_MULTIPLE

public static final int ACTION_MULTIPLE
See Also:
Constant Field Values

META_ALT_ON

public static final int META_ALT_ON
See Also:
Constant Field Values

META_CAP_ON

public static final int META_CAP_ON
See Also:
Constant Field Values

META_SYM_ON

public static final int META_SYM_ON
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator CREATOR
Constructor Detail

KeyEvent

public KeyEvent(int action,
                int code)

KeyEvent

public KeyEvent(long downTime,
                long eventTime,
                int action,
                int code,
                int repeat)

KeyEvent

public KeyEvent(KeyEvent origEvent,
                long eventTime,
                int newRepeat)
Method Detail

isDown

public final boolean isDown()

isSystem

public final boolean isSystem()

getMetaState

public final int getMetaState()

isModifierKey

public static boolean isModifierKey(int keyCode)

isAltPressed

public final boolean isAltPressed()

isCapPressed

public final boolean isCapPressed()

isSymPressed

public final boolean isSymPressed()

getAction

public final int getAction()

getKeyCode

public final int getKeyCode()

getScanCode

public final int getScanCode()

getRepeatCount

public final int getRepeatCount()

getDownTime

public final long getDownTime()

getEventTime

public final long getEventTime()

getDeviceId

public final int getDeviceId()

getKeyboardDevice

public final int getKeyboardDevice()

dispatch

public final boolean dispatch(KeyEvent.Callback receiver)

toString

public String toString()
Overrides:
toString in class Object

writeToParcel

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

Build m5-rc15

Please submit a feedback, bug or feature