MediaPlayer.SetOnPreparedListener(MediaPlayer+IOnPreparedListener) 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.
Register a callback to be invoked when the media source is ready for playback.
[Android.Runtime.Register("setOnPreparedListener", "(Landroid/media/MediaPlayer$OnPreparedListener;)V", "GetSetOnPreparedListener_Landroid_media_MediaPlayer_OnPreparedListener_Handler")]
public virtual void SetOnPreparedListener (Android.Media.MediaPlayer.IOnPreparedListener? listener);
[<Android.Runtime.Register("setOnPreparedListener", "(Landroid/media/MediaPlayer$OnPreparedListener;)V", "GetSetOnPreparedListener_Landroid_media_MediaPlayer_OnPreparedListener_Handler")>]
abstract member SetOnPreparedListener : Android.Media.MediaPlayer.IOnPreparedListener -> unit
override this.SetOnPreparedListener : Android.Media.MediaPlayer.IOnPreparedListener -> unit
Parameters
- listener
- MediaPlayer.IOnPreparedListener
the callback that will be run
- Attributes
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.