Most visited

Recently visited

KeyEventCompat

public final class KeyEventCompat
extends Object

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


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 isCtrlPressed(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)

Inherited methods

From class java.lang.Object

Public methods

dispatch

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

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

getKeyDispatcherState

Object getKeyDispatcherState (View view)

Parameters
view View
Returns
Object

hasModifiers

boolean hasModifiers (KeyEvent event, 
                int modifiers)

Parameters
event KeyEvent
modifiers int
Returns
boolean

hasNoModifiers

boolean hasNoModifiers (KeyEvent event)

Parameters
event KeyEvent
Returns
boolean

isCtrlPressed

boolean isCtrlPressed (KeyEvent event)

Parameters
event KeyEvent
Returns
boolean

isTracking

boolean isTracking (KeyEvent event)

Parameters
event KeyEvent
Returns
boolean

metaStateHasModifiers

boolean metaStateHasModifiers (int metaState, 
                int modifiers)

Parameters
metaState int
modifiers int
Returns
boolean

metaStateHasNoModifiers

boolean metaStateHasNoModifiers (int metaState)

Parameters
metaState int
Returns
boolean

normalizeMetaState

int normalizeMetaState (int metaState)

Parameters
metaState int
Returns
int

startTracking

void startTracking (KeyEvent event)

Parameters
event KeyEvent

Hooray!