RemoteController.SendMediaKeyEvent(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.
Caution
deprecated
Send a simulated key event for a media button to be received by the current client.
[Android.Runtime.Register("sendMediaKeyEvent", "(Landroid/view/KeyEvent;)Z", "")]
[System.Obsolete("deprecated")]
public bool SendMediaKeyEvent (Android.Views.KeyEvent? keyEvent);
[<Android.Runtime.Register("sendMediaKeyEvent", "(Landroid/view/KeyEvent;)Z", "")>]
[<System.Obsolete("deprecated")>]
member this.SendMediaKeyEvent : Android.Views.KeyEvent -> bool
Parameters
- keyEvent
- KeyEvent
a KeyEvent instance whose key code is one of F:Android.Views.Keycode.MediaMute, Headsethook, MediaPlay, MediaPause, MediaPlayPause, MediaStop, MediaNext, MediaPrevious, MediaRewind, MediaRecord, MediaFastForward, MediaClose, MediaEject, or MediaAudioTrack.
Returns
- Attributes
Exceptions
Remarks
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.