MediaController.DispatchMediaButtonEvent(KeyEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Send the specified media button event to the session.
[Android.Runtime.Register("dispatchMediaButtonEvent", "(Landroid/view/KeyEvent;)Z", "")]
public bool DispatchMediaButtonEvent (Android.Views.KeyEvent keyEvent);
[<Android.Runtime.Register("dispatchMediaButtonEvent", "(Landroid/view/KeyEvent;)Z", "")>]
member this.DispatchMediaButtonEvent : Android.Views.KeyEvent -> bool
Parameters
- keyEvent
- KeyEvent
The media button event to dispatch.
Returns
true if the event was sent to the session, false otherwise.
- Attributes
Remarks
Send the specified media button event to the session. Only media keys can be sent by this method, other keys will be ignored.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.