Sdílet prostřednictvím


VideoView.SetOnPreparedListener(MediaPlayer+IOnPreparedListener) Method

Definition

Register a callback to be invoked when the media file is loaded and ready to go.

[Android.Runtime.Register("setOnPreparedListener", "(Landroid/media/MediaPlayer$OnPreparedListener;)V", "GetSetOnPreparedListener_Landroid_media_MediaPlayer_OnPreparedListener_Handler")]
public virtual void SetOnPreparedListener (Android.Media.MediaPlayer.IOnPreparedListener? l);
[<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

l
MediaPlayer.IOnPreparedListener

The callback that will be run

Attributes

Remarks

Java documentation for android.widget.VideoView.setOnPreparedListener(android.media.OnPreparedListener).

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