Android APIs
public 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 Constructors
KeyEventCompat()
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 Constructors

public KeyEventCompat ()

Public Methods

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

Parameters
event
receiver
state
target
Returns
boolean

public static Object getKeyDispatcherState (View view)

Parameters
view
Returns
Object

public static boolean hasModifiers (KeyEvent event, int modifiers)

Parameters
event
modifiers
Returns
boolean

public static boolean hasNoModifiers (KeyEvent event)

Parameters
event
Returns
boolean

public static boolean isTracking (KeyEvent event)

Parameters
event
Returns
boolean

public static boolean metaStateHasModifiers (int metaState, int modifiers)

Parameters
metaState
modifiers
Returns
boolean

public static boolean metaStateHasNoModifiers (int metaState)

Parameters
metaState
Returns
boolean

public static int normalizeMetaState (int metaState)

Parameters
metaState
Returns
int

public static void startTracking (KeyEvent event)

Parameters
event