Sdílet prostřednictvím


MediaDrm.SetOnKeyStatusChangeListener Method

Definition

Overloads

SetOnKeyStatusChangeListener(MediaDrm+IOnKeyStatusChangeListener, Handler)

Register a callback to be invoked when the state of keys in a session change, e.

SetOnKeyStatusChangeListener(IExecutor, MediaDrm+IOnKeyStatusChangeListener)

Register a callback to be invoked when the state of keys in a session change, e.

SetOnKeyStatusChangeListener(MediaDrm+IOnKeyStatusChangeListener, Handler)

Register a callback to be invoked when the state of keys in a session change, e.

[Android.Runtime.Register("setOnKeyStatusChangeListener", "(Landroid/media/MediaDrm$OnKeyStatusChangeListener;Landroid/os/Handler;)V", "", ApiSince=23)]
public void SetOnKeyStatusChangeListener (Android.Media.MediaDrm.IOnKeyStatusChangeListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setOnKeyStatusChangeListener", "(Landroid/media/MediaDrm$OnKeyStatusChangeListener;Landroid/os/Handler;)V", "", ApiSince=23)>]
member this.SetOnKeyStatusChangeListener : Android.Media.MediaDrm.IOnKeyStatusChangeListener * Android.OS.Handler -> unit

Parameters

listener
MediaDrm.IOnKeyStatusChangeListener

the callback that will be run when key status changes, or null to unregister the previously registered callback.

handler
Handler

the handler on which the listener should be invoked, or null if the listener should be invoked on the calling thread's looper.

Attributes

Remarks

Java documentation for android.media.MediaDrm.setOnKeyStatusChangeListener(android.media.OnKeyStatusChangeListener, android.os.Handler).

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

SetOnKeyStatusChangeListener(IExecutor, MediaDrm+IOnKeyStatusChangeListener)

Register a callback to be invoked when the state of keys in a session change, e.

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

Parameters

executor
IExecutor
listener
MediaDrm.IOnKeyStatusChangeListener

the callback that will be run when key status changes, or null to unregister the previously registered callback.

Attributes

Remarks

Java documentation for android.media.MediaDrm.setOnKeyStatusChangeListener(android.media.OnKeyStatusChangeListener, android.os.Handler).

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