MediaRouter2.RegisterControllerCallback 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.
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.
- callback
- MediaRouter2.ControllerCallback
- 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.