Udostępnij za pośrednictwem


MediaCas.SetEventListener(MediaCas+IEventListener, Handler) Method

Definition

Set an event listener to receive notifications from the MediaCas instance.

[Android.Runtime.Register("setEventListener", "(Landroid/media/MediaCas$EventListener;Landroid/os/Handler;)V", "", ApiSince=26)]
public void SetEventListener (Android.Media.MediaCas.IEventListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setEventListener", "(Landroid/media/MediaCas$EventListener;Landroid/os/Handler;)V", "", ApiSince=26)>]
member this.SetEventListener : Android.Media.MediaCas.IEventListener * Android.OS.Handler -> unit

Parameters

listener
MediaCas.IEventListener

the event listener to be set.

handler
Handler

the handler whose looper the event listener will be called on. If handler is null, we'll try to use current thread's looper, or the main looper. If neither are available, an internal thread will be created instead.

Attributes

Remarks

Java documentation for android.media.MediaCas.setEventListener(android.media.EventListener, 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