Java Code Examples for android.support.v4.view.KeyEventCompat#dispatch()

The following examples show how to use android.support.v4.view.KeyEventCompat#dispatch() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransportMediator.java    From letv with Apache License 2.0 4 votes vote down vote up
public boolean dispatchKeyEvent(KeyEvent event) {
    return KeyEventCompat.dispatch(event, this.mKeyEventCallback, this.mDispatcherState, this);
}
 
Example 2
Source File: TransportMediator.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public boolean dispatchKeyEvent(KeyEvent keyevent)
{
    return KeyEventCompat.dispatch(keyevent, i, e, this);
}
 
Example 3
Source File: TransportMediator.java    From CodenameOne with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Must call from {@link Activity#dispatchKeyEvent Activity.dispatchKeyEvent} to give
 * the transport an opportunity to intercept media keys.  Any such keys will show up
 * in {@link TransportPerformer}.
 * @param event
 */
public boolean dispatchKeyEvent(KeyEvent event) {
    return KeyEventCompat.dispatch(event, mKeyEventCallback, mDispatcherState, this);
}
 
Example 4
Source File: TransportMediator.java    From adt-leanback-support with Apache License 2.0 2 votes vote down vote up
/**
 * Must call from {@link Activity#dispatchKeyEvent Activity.dispatchKeyEvent} to give
 * the transport an opportunity to intercept media keys.  Any such keys will show up
 * in {@link TransportPerformer}.
 * @param event
 */
public boolean dispatchKeyEvent(KeyEvent event) {
    return KeyEventCompat.dispatch(event, mKeyEventCallback, mDispatcherState, this);
}
 
Example 5
Source File: TransportMediator.java    From android-recipes-app with Apache License 2.0 2 votes vote down vote up
/**
 * Must call from {@link Activity#dispatchKeyEvent Activity.dispatchKeyEvent} to give
 * the transport an opportunity to intercept media keys.  Any such keys will show up
 * in {@link TransportPerformer}.
 * @param event
 */
public boolean dispatchKeyEvent(KeyEvent event) {
    return KeyEventCompat.dispatch(event, mKeyEventCallback, mDispatcherState, this);
}
 
Example 6
Source File: TransportMediator.java    From V.FlyoutTest with MIT License 2 votes vote down vote up
/**
 * Must call from {@link Activity#dispatchKeyEvent Activity.dispatchKeyEvent} to give
 * the transport an opportunity to intercept media keys.  Any such keys will show up
 * in {@link TransportPerformer}.
 * @param event
 */
public boolean dispatchKeyEvent(KeyEvent event) {
    return KeyEventCompat.dispatch(event, mKeyEventCallback, mDispatcherState, this);
}
 
Example 7
Source File: TransportMediator.java    From guideshow with MIT License 2 votes vote down vote up
/**
 * Must call from {@link Activity#dispatchKeyEvent Activity.dispatchKeyEvent} to give
 * the transport an opportunity to intercept media keys.  Any such keys will show up
 * in {@link TransportPerformer}.
 * @param event
 */
public boolean dispatchKeyEvent(KeyEvent event) {
    return KeyEventCompat.dispatch(event, mKeyEventCallback, mDispatcherState, this);
}