MediaRouter2.RegisterControllerCallback Method

Definition

Registers a ControllerCallback.

[Android.Runtime.Register("registerControllerCallback", "(Ljava/util/concurrent/Executor;Landroid/media/MediaRouter2$ControllerCallback;)V", "", ApiSince=30)]
public void RegisterControllerCallback(Java.Util.Concurrent.IExecutor executor, Android.Media.MediaRouter2.ControllerCallback callback);
[<Android.Runtime.Register("registerControllerCallback", "(Ljava/util/concurrent/Executor;Landroid/media/MediaRouter2$ControllerCallback;)V", "", ApiSince=30)>]
member this.RegisterControllerCallback : Java.Util.Concurrent.IExecutor * Android.Media.MediaRouter2.ControllerCallback -> unit

Parameters

executor
IExecutor

This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

Attributes

Remarks

Android reference for android.media.MediaRouter2.registerControllerCallback.

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