共用方式為


MediaPlayer.SetOnDrmInfoListener Method

Definition

Overloads

SetOnDrmInfoListener(MediaPlayer+IOnDrmInfoListener)

Register a callback to be invoked when the DRM info is known.

SetOnDrmInfoListener(MediaPlayer+IOnDrmInfoListener, Handler)

Register a callback to be invoked when the DRM info is known.

SetOnDrmInfoListener(MediaPlayer+IOnDrmInfoListener)

Register a callback to be invoked when the DRM info is known.

[Android.Runtime.Register("setOnDrmInfoListener", "(Landroid/media/MediaPlayer$OnDrmInfoListener;)V", "GetSetOnDrmInfoListener_Landroid_media_MediaPlayer_OnDrmInfoListener_Handler", ApiSince=26)]
public virtual void SetOnDrmInfoListener (Android.Media.MediaPlayer.IOnDrmInfoListener? listener);
[<Android.Runtime.Register("setOnDrmInfoListener", "(Landroid/media/MediaPlayer$OnDrmInfoListener;)V", "GetSetOnDrmInfoListener_Landroid_media_MediaPlayer_OnDrmInfoListener_Handler", ApiSince=26)>]
abstract member SetOnDrmInfoListener : Android.Media.MediaPlayer.IOnDrmInfoListener -> unit
override this.SetOnDrmInfoListener : Android.Media.MediaPlayer.IOnDrmInfoListener -> unit

Parameters

listener
MediaPlayer.IOnDrmInfoListener

the callback that will be run

Attributes

Remarks

Java documentation for android.media.MediaPlayer.setOnDrmInfoListener(android.media.OnDrmInfoListener).

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

SetOnDrmInfoListener(MediaPlayer+IOnDrmInfoListener, Handler)

Register a callback to be invoked when the DRM info is known.

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

Parameters

listener
MediaPlayer.IOnDrmInfoListener

the callback that will be run

handler
Handler
Attributes

Remarks

Java documentation for android.media.MediaPlayer.setOnDrmInfoListener(android.media.OnDrmInfoListener).

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