Interface MediaControllerKeyDispatcher
-
- All Known Implementing Classes:
PauseAdView
,PulseAdView
public interface MediaControllerKeyDispatcher
The key dispatcher interface for the Media Controller.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
dispatchKeyEvent(android.view.KeyEvent event)
Dispatch the key event received by theBrightcoveMediaController
.static boolean
isDirectionalPadKeyCode(int keyCode)
Returns true when the key code is one of the following: -KeyEvent.KEYCODE_DPAD_UP
-KeyEvent.KEYCODE_DPAD_DOWN
-KeyEvent.KEYCODE_DPAD_CENTER
-KeyEvent.KEYCODE_DPAD_RIGHT
-KeyEvent.KEYCODE_DPAD_LEFT
or false otherwise.
-
-
-
Method Detail
-
dispatchKeyEvent
boolean dispatchKeyEvent(android.view.KeyEvent event)
Dispatch the key event received by theBrightcoveMediaController
.- Parameters:
event
- the Key Event- Returns:
- True if the event was handled, false otherwise.
- See Also:
View.dispatchKeyEvent(KeyEvent)
-
isDirectionalPadKeyCode
static boolean isDirectionalPadKeyCode(int keyCode)
Returns true when the key code is one of the following: -KeyEvent.KEYCODE_DPAD_UP
-KeyEvent.KEYCODE_DPAD_DOWN
-KeyEvent.KEYCODE_DPAD_CENTER
-KeyEvent.KEYCODE_DPAD_RIGHT
-KeyEvent.KEYCODE_DPAD_LEFT
or false otherwise.- Parameters:
keyCode
- theKeyEvent
key code- Returns:
- true when it is a directional Pad key code
-
-