Partager via


MediaPlayer.IOnPreparedListener.OnPrepared(MediaPlayer) Method

Definition

Called when the media file is ready for playback.

[Android.Runtime.Register("onPrepared", "(Landroid/media/MediaPlayer;)V", "GetOnPrepared_Landroid_media_MediaPlayer_Handler:Android.Media.MediaPlayer/IOnPreparedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnPrepared (Android.Media.MediaPlayer? mp);
[<Android.Runtime.Register("onPrepared", "(Landroid/media/MediaPlayer;)V", "GetOnPrepared_Landroid_media_MediaPlayer_Handler:Android.Media.MediaPlayer/IOnPreparedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnPrepared : Android.Media.MediaPlayer -> unit

Parameters

mp
MediaPlayer

the MediaPlayer that is ready for playback

Attributes

Remarks

Called when the media file is ready for playback.

Java documentation for android.media.MediaPlayer.OnPreparedListener.onPrepared(android.media.MediaPlayer).

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.

Applies to