MediaDrm.SetOnSessionLostStateListener Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetOnSessionLostStateListener(MediaDrm+IOnSessionLostStateListener, Handler) |
Register a callback to be invoked when session state has been lost. |
SetOnSessionLostStateListener(IExecutor, MediaDrm+IOnSessionLostStateListener) |
Register a callback to be invoked when session state has been lost. |
SetOnSessionLostStateListener(MediaDrm+IOnSessionLostStateListener, Handler)
Register a callback to be invoked when session state has been lost.
[Android.Runtime.Register("setOnSessionLostStateListener", "(Landroid/media/MediaDrm$OnSessionLostStateListener;Landroid/os/Handler;)V", "", ApiSince=29)]
public void SetOnSessionLostStateListener (Android.Media.MediaDrm.IOnSessionLostStateListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setOnSessionLostStateListener", "(Landroid/media/MediaDrm$OnSessionLostStateListener;Landroid/os/Handler;)V", "", ApiSince=29)>]
member this.SetOnSessionLostStateListener : Android.Media.MediaDrm.IOnSessionLostStateListener * Android.OS.Handler -> unit
Parameters
- listener
- MediaDrm.IOnSessionLostStateListener
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
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
SetOnSessionLostStateListener(IExecutor, MediaDrm+IOnSessionLostStateListener)
Register a callback to be invoked when session state has been lost.
[Android.Runtime.Register("setOnSessionLostStateListener", "(Ljava/util/concurrent/Executor;Landroid/media/MediaDrm$OnSessionLostStateListener;)V", "", ApiSince=29)]
public void SetOnSessionLostStateListener (Java.Util.Concurrent.IExecutor executor, Android.Media.MediaDrm.IOnSessionLostStateListener? listener);
[<Android.Runtime.Register("setOnSessionLostStateListener", "(Ljava/util/concurrent/Executor;Landroid/media/MediaDrm$OnSessionLostStateListener;)V", "", ApiSince=29)>]
member this.SetOnSessionLostStateListener : Java.Util.Concurrent.IExecutor * Android.Media.MediaDrm.IOnSessionLostStateListener -> unit
Parameters
- executor
- IExecutor
- listener
- MediaDrm.IOnSessionLostStateListener
the callback that will be run, or null
to unregister the
previously registered callback.
- Attributes
Remarks
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.