FileDocCategorySizeDatePackage
KeyEventCompat.javaAPI DocAndroid 5.1 API7509Thu Mar 12 22:22:56 GMT 2015android.support.v4.view

KeyEventCompat

public class KeyEventCompat extends Object
Helper for accessing features in {@link KeyEvent} introduced after API level 4 in a backwards compatible fashion.

Fields Summary
static final KeyEventVersionImpl
IMPL
Select the correct implementation to use for the current platform.
Constructors Summary
Methods Summary
public static booleandispatch(android.view.KeyEvent event, KeyEvent.Callback receiver, java.lang.Object state, java.lang.Object target)

        return IMPL.dispatch(event, receiver, state, target);
    
public static java.lang.ObjectgetKeyDispatcherState(android.view.View view)

        return IMPL.getKeyDispatcherState(view);
    
public static booleanhasModifiers(android.view.KeyEvent event, int modifiers)

        return IMPL.metaStateHasModifiers(event.getMetaState(), modifiers);
    
public static booleanhasNoModifiers(android.view.KeyEvent event)

        return IMPL.metaStateHasNoModifiers(event.getMetaState());
    
public static booleanisTracking(android.view.KeyEvent event)

        return IMPL.isTracking(event);
    
public static booleanmetaStateHasModifiers(int metaState, int modifiers)

        return IMPL.metaStateHasModifiers(metaState, modifiers);
    
public static booleanmetaStateHasNoModifiers(int metaState)

        return IMPL.metaStateHasNoModifiers(metaState);
    
public static intnormalizeMetaState(int metaState)

        if (android.os.Build.VERSION.SDK_INT >= 11) {
            IMPL = new HoneycombKeyEventVersionImpl();
        } else {
            IMPL = new BaseKeyEventVersionImpl();
        }
    
        return IMPL.normalizeMetaState(metaState);
    
public static voidstartTracking(android.view.KeyEvent event)

        IMPL.startTracking(event);