- keyEvent
- a Android.Views.KeyEvent instance whose key code is one of Android.Views.KeyEvent.KEYCODE_MUTE, Android.Views.KeyEvent.KEYCODE_HEADSETHOOK, Android.Views.KeyEvent.KEYCODE_MEDIA_PLAY, Android.Views.KeyEvent.KEYCODE_MEDIA_PAUSE, Android.Views.KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE, Android.Views.KeyEvent.KEYCODE_MEDIA_STOP, Android.Views.KeyEvent.KEYCODE_MEDIA_NEXT, Android.Views.KeyEvent.KEYCODE_MEDIA_PREVIOUS, Android.Views.KeyEvent.KEYCODE_MEDIA_REWIND, Android.Views.KeyEvent.KEYCODE_MEDIA_RECORD, Android.Views.KeyEvent.KEYCODE_MEDIA_FAST_FORWARD, Android.Views.KeyEvent.KEYCODE_MEDIA_CLOSE, Android.Views.KeyEvent.KEYCODE_MEDIA_EJECT, or Android.Views.KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException
Send a simulated key event for a media button to be received by the current client. To simulate a key press, you must first send a KeyEvent built with a Android.Views.KeyEvent.ACTION_DOWN action, then another event with the Android.Views.KeyEvent.ACTION_UP action.
The key event will be sent to the registered receiver (see AudioManager.RegisterMediaButtonEventReceiver(Android.App.PendingIntent)) whose associated Android.Media.RemoteControlClient's metadata and playback state is published (there may be none under some circumstances).