Sdílet prostřednictvím


MediaDrm.SetOnEventListener Method

Definition

Overloads

SetOnEventListener(MediaDrm+IOnEventListener, Handler)

Register a callback to be invoked when an event occurs

SetOnEventListener(IExecutor, MediaDrm+IOnEventListener)

Register a callback to be invoked when an event occurs

SetOnEventListener(MediaDrm+IOnEventListener)

Register a callback to be invoked when an event occurs

SetOnEventListener(MediaDrm+IOnEventListener, Handler)

Register a callback to be invoked when an event occurs

[Android.Runtime.Register("setOnEventListener", "(Landroid/media/MediaDrm$OnEventListener;Landroid/os/Handler;)V", "", ApiSince=29)]
public void SetOnEventListener (Android.Media.MediaDrm.IOnEventListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setOnEventListener", "(Landroid/media/MediaDrm$OnEventListener;Landroid/os/Handler;)V", "", ApiSince=29)>]
member this.SetOnEventListener : Android.Media.MediaDrm.IOnEventListener * Android.OS.Handler -> unit

Parameters

listener
MediaDrm.IOnEventListener

the callback that will be run. Use null to stop receiving event callbacks.

handler
Handler
Attributes

Remarks

Java documentation for android.media.MediaDrm.setOnEventListener(android.media.OnEventListener).

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

SetOnEventListener(IExecutor, MediaDrm+IOnEventListener)

Register a callback to be invoked when an event occurs

[Android.Runtime.Register("setOnEventListener", "(Ljava/util/concurrent/Executor;Landroid/media/MediaDrm$OnEventListener;)V", "", ApiSince=29)]
public void SetOnEventListener (Java.Util.Concurrent.IExecutor executor, Android.Media.MediaDrm.IOnEventListener listener);
[<Android.Runtime.Register("setOnEventListener", "(Ljava/util/concurrent/Executor;Landroid/media/MediaDrm$OnEventListener;)V", "", ApiSince=29)>]
member this.SetOnEventListener : Java.Util.Concurrent.IExecutor * Android.Media.MediaDrm.IOnEventListener -> unit

Parameters

executor
IExecutor
listener
MediaDrm.IOnEventListener

the callback that will be run. Use null to stop receiving event callbacks.

Attributes

Remarks

Java documentation for android.media.MediaDrm.setOnEventListener(android.media.OnEventListener).

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

SetOnEventListener(MediaDrm+IOnEventListener)

Register a callback to be invoked when an event occurs

[Android.Runtime.Register("setOnEventListener", "(Landroid/media/MediaDrm$OnEventListener;)V", "")]
public void SetOnEventListener (Android.Media.MediaDrm.IOnEventListener? listener);
[<Android.Runtime.Register("setOnEventListener", "(Landroid/media/MediaDrm$OnEventListener;)V", "")>]
member this.SetOnEventListener : Android.Media.MediaDrm.IOnEventListener -> unit

Parameters

listener
MediaDrm.IOnEventListener

the callback that will be run. Use null to stop receiving event callbacks.

Attributes

Remarks

Java documentation for android.media.MediaDrm.setOnEventListener(android.media.OnEventListener).

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