Android APIs
public final class

KeyEventCompat

extends Object
java.lang.Object
   ↳ android.support.v4.view.KeyEventCompat

Class Overview

Helper for accessing features in KeyEvent introduced after API level 4 in a backwards compatible fashion.

Summary

Public Methods
static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, Object target)
static Object getKeyDispatcherState(View view)
static boolean hasModifiers(KeyEvent event, int modifiers)
static boolean hasNoModifiers(KeyEvent event)
static boolean isTracking(KeyEvent event)
static boolean metaStateHasModifiers(int metaState, int modifiers)
static boolean metaStateHasNoModifiers(int metaState)
static int normalizeMetaState(int metaState)
static void startTracking(KeyEvent event)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static boolean dispatch (KeyEvent event, KeyEvent.Callback receiver, Object state, Object target)

Parameters
event KeyEvent
receiver KeyEvent.Callback
state Object
target Object
Returns
boolean

public static Object getKeyDispatcherState (View view)

Parameters
view View
Returns
Object

public static boolean hasModifiers (KeyEvent event, int modifiers)

Parameters
event KeyEvent
modifiers int
Returns
boolean

public static boolean hasNoModifiers (KeyEvent event)

Parameters
event KeyEvent
Returns
boolean

public static boolean isTracking (KeyEvent event)

Parameters
event KeyEvent
Returns
boolean

public static boolean metaStateHasModifiers (int metaState, int modifiers)

Parameters
metaState int
modifiers int
Returns
boolean

public static boolean metaStateHasNoModifiers (int metaState)

Parameters
metaState int
Returns
boolean

public static int normalizeMetaState (int metaState)

Parameters
metaState int
Returns
int

public static void startTracking (KeyEvent event)

Parameters
event KeyEvent