Sdílet prostřednictvím


MediaPlayer.SetOnBufferingUpdateListener Method

Definition

Register a callback to be invoked when the status of a network stream's buffer has changed.

[Android.Runtime.Register("setOnBufferingUpdateListener", "(Landroid/media/MediaPlayer$OnBufferingUpdateListener;)V", "GetSetOnBufferingUpdateListener_Landroid_media_MediaPlayer_OnBufferingUpdateListener_Handler")]
public virtual void SetOnBufferingUpdateListener (Android.Media.MediaPlayer.IOnBufferingUpdateListener? listener);
[<Android.Runtime.Register("setOnBufferingUpdateListener", "(Landroid/media/MediaPlayer$OnBufferingUpdateListener;)V", "GetSetOnBufferingUpdateListener_Landroid_media_MediaPlayer_OnBufferingUpdateListener_Handler")>]
abstract member SetOnBufferingUpdateListener : Android.Media.MediaPlayer.IOnBufferingUpdateListener -> unit
override this.SetOnBufferingUpdateListener : Android.Media.MediaPlayer.IOnBufferingUpdateListener -> unit

Parameters

listener
MediaPlayer.IOnBufferingUpdateListener

the callback that will be run.

Attributes

Remarks

Java documentation for android.media.MediaPlayer.setOnBufferingUpdateListener(android.media.OnBufferingUpdateListener).

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