Condividi tramite


MediaDrm.SetOnExpirationUpdateListener Method

Definition

Overloads

SetOnExpirationUpdateListener(MediaDrm+IOnExpirationUpdateListener, Handler)

Register a callback to be invoked when a session expiration update occurs.

SetOnExpirationUpdateListener(IExecutor, MediaDrm+IOnExpirationUpdateListener)

Register a callback to be invoked when a session expiration update occurs.

SetOnExpirationUpdateListener(MediaDrm+IOnExpirationUpdateListener, Handler)

Register a callback to be invoked when a session expiration update occurs.

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

Parameters

listener
MediaDrm.IOnExpirationUpdateListener

the callback that will be run, 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.setOnExpirationUpdateListener(android.media.OnExpirationUpdateListener, 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

SetOnExpirationUpdateListener(IExecutor, MediaDrm+IOnExpirationUpdateListener)

Register a callback to be invoked when a session expiration update occurs.

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

Parameters

executor
IExecutor
listener
MediaDrm.IOnExpirationUpdateListener

the callback that will be run, or null to unregister the previously registered callback.

Attributes

Remarks

Java documentation for android.media.MediaDrm.setOnExpirationUpdateListener(android.media.OnExpirationUpdateListener, 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