MediaPlayer.SetOnMediaTimeDiscontinuityListener 方法

定义

重载

SetOnMediaTimeDiscontinuityListener(MediaPlayer+IOnMediaTimeDiscontinuityListener)

设置在遇到媒体时间中断时要调用的侦听器。

SetOnMediaTimeDiscontinuityListener(MediaPlayer+IOnMediaTimeDiscontinuityListener, Handler)

设置在遇到媒体时间中断时要调用的侦听器。

SetOnMediaTimeDiscontinuityListener(MediaPlayer+IOnMediaTimeDiscontinuityListener)

设置在遇到媒体时间中断时要调用的侦听器。

[Android.Runtime.Register("setOnMediaTimeDiscontinuityListener", "(Landroid/media/MediaPlayer$OnMediaTimeDiscontinuityListener;)V", "GetSetOnMediaTimeDiscontinuityListener_Landroid_media_MediaPlayer_OnMediaTimeDiscontinuityListener_Handler", ApiSince=28)]
public virtual void SetOnMediaTimeDiscontinuityListener (Android.Media.MediaPlayer.IOnMediaTimeDiscontinuityListener? listener);
[<Android.Runtime.Register("setOnMediaTimeDiscontinuityListener", "(Landroid/media/MediaPlayer$OnMediaTimeDiscontinuityListener;)V", "GetSetOnMediaTimeDiscontinuityListener_Landroid_media_MediaPlayer_OnMediaTimeDiscontinuityListener_Handler", ApiSince=28)>]
abstract member SetOnMediaTimeDiscontinuityListener : Android.Media.MediaPlayer.IOnMediaTimeDiscontinuityListener -> unit
override this.SetOnMediaTimeDiscontinuityListener : Android.Media.MediaPlayer.IOnMediaTimeDiscontinuityListener -> unit

参数

listener
MediaPlayer.IOnMediaTimeDiscontinuityListener

在中断后调用的侦听器

属性

注解

适用于 . 的 android.media.MediaPlayer.setOnMediaTimeDiscontinuityListener(android.media.OnMediaTimeDiscontinuityListener)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

SetOnMediaTimeDiscontinuityListener(MediaPlayer+IOnMediaTimeDiscontinuityListener, Handler)

设置在遇到媒体时间中断时要调用的侦听器。

[Android.Runtime.Register("setOnMediaTimeDiscontinuityListener", "(Landroid/media/MediaPlayer$OnMediaTimeDiscontinuityListener;Landroid/os/Handler;)V", "GetSetOnMediaTimeDiscontinuityListener_Landroid_media_MediaPlayer_OnMediaTimeDiscontinuityListener_Landroid_os_Handler_Handler", ApiSince=28)]
public virtual void SetOnMediaTimeDiscontinuityListener (Android.Media.MediaPlayer.IOnMediaTimeDiscontinuityListener listener, Android.OS.Handler handler);
[<Android.Runtime.Register("setOnMediaTimeDiscontinuityListener", "(Landroid/media/MediaPlayer$OnMediaTimeDiscontinuityListener;Landroid/os/Handler;)V", "GetSetOnMediaTimeDiscontinuityListener_Landroid_media_MediaPlayer_OnMediaTimeDiscontinuityListener_Landroid_os_Handler_Handler", ApiSince=28)>]
abstract member SetOnMediaTimeDiscontinuityListener : Android.Media.MediaPlayer.IOnMediaTimeDiscontinuityListener * Android.OS.Handler -> unit
override this.SetOnMediaTimeDiscontinuityListener : Android.Media.MediaPlayer.IOnMediaTimeDiscontinuityListener * Android.OS.Handler -> unit

参数

listener
MediaPlayer.IOnMediaTimeDiscontinuityListener

在中断后调用的侦听器

handler
Handler
属性

注解

适用于 . 的 android.media.MediaPlayer.setOnMediaTimeDiscontinuityListener(android.media.OnMediaTimeDiscontinuityListener)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于