dispatchKeyEvent

open fun dispatchKeyEvent(event: KeyEvent): Boolean

Dispatch the key event. This method has to be called from a Android View, overriding the it's dispatchKeyEven method.

When a MediaControllerKeyDispatcher has been set through the MediaControllerConfig, its dispatchKeyEvent will be called. When either the MediaControllerKeyDispatcher is not set or when dispatchKeyEvent returns false, the default dispatch key event implementation will be used.

Return

true if the key event was handled, or false to let it be handled by the View

Parameters

event

the android.View.KeyEvent