共用方式為


MediaPlayer.SetOnDrmPreparedListener Method

Definition

Overloads

SetOnDrmPreparedListener(MediaPlayer+IOnDrmPreparedListener)

Register a callback to be invoked when the DRM object is prepared.

SetOnDrmPreparedListener(MediaPlayer+IOnDrmPreparedListener, Handler)

Register a callback to be invoked when the DRM object is prepared.

SetOnDrmPreparedListener(MediaPlayer+IOnDrmPreparedListener)

Register a callback to be invoked when the DRM object is prepared.

[Android.Runtime.Register("setOnDrmPreparedListener", "(Landroid/media/MediaPlayer$OnDrmPreparedListener;)V", "GetSetOnDrmPreparedListener_Landroid_media_MediaPlayer_OnDrmPreparedListener_Handler", ApiSince=26)]
public virtual void SetOnDrmPreparedListener (Android.Media.MediaPlayer.IOnDrmPreparedListener? listener);
[<Android.Runtime.Register("setOnDrmPreparedListener", "(Landroid/media/MediaPlayer$OnDrmPreparedListener;)V", "GetSetOnDrmPreparedListener_Landroid_media_MediaPlayer_OnDrmPreparedListener_Handler", ApiSince=26)>]
abstract member SetOnDrmPreparedListener : Android.Media.MediaPlayer.IOnDrmPreparedListener -> unit
override this.SetOnDrmPreparedListener : Android.Media.MediaPlayer.IOnDrmPreparedListener -> unit

Parameters

listener
MediaPlayer.IOnDrmPreparedListener

the callback that will be run

Attributes

Remarks

Java documentation for android.media.MediaPlayer.setOnDrmPreparedListener(android.media.OnDrmPreparedListener).

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

SetOnDrmPreparedListener(MediaPlayer+IOnDrmPreparedListener, Handler)

Register a callback to be invoked when the DRM object is prepared.

[Android.Runtime.Register("setOnDrmPreparedListener", "(Landroid/media/MediaPlayer$OnDrmPreparedListener;Landroid/os/Handler;)V", "GetSetOnDrmPreparedListener_Landroid_media_MediaPlayer_OnDrmPreparedListener_Landroid_os_Handler_Handler", ApiSince=26)]
public virtual void SetOnDrmPreparedListener (Android.Media.MediaPlayer.IOnDrmPreparedListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setOnDrmPreparedListener", "(Landroid/media/MediaPlayer$OnDrmPreparedListener;Landroid/os/Handler;)V", "GetSetOnDrmPreparedListener_Landroid_media_MediaPlayer_OnDrmPreparedListener_Landroid_os_Handler_Handler", ApiSince=26)>]
abstract member SetOnDrmPreparedListener : Android.Media.MediaPlayer.IOnDrmPreparedListener * Android.OS.Handler -> unit
override this.SetOnDrmPreparedListener : Android.Media.MediaPlayer.IOnDrmPreparedListener * Android.OS.Handler -> unit

Parameters

listener
MediaPlayer.IOnDrmPreparedListener

the callback that will be run

handler
Handler
Attributes

Remarks

Java documentation for android.media.MediaPlayer.setOnDrmPreparedListener(android.media.OnDrmPreparedListener).

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