TvInteractiveAppView.SetCallback 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.
Sets the callback to be invoked when an event is dispatched to this TvInteractiveAppView.
[Android.Runtime.Register("setCallback", "(Ljava/util/concurrent/Executor;Landroid/media/tv/interactive/TvInteractiveAppView$TvInteractiveAppCallback;)V", "GetSetCallback_Ljava_util_concurrent_Executor_Landroid_media_tv_interactive_TvInteractiveAppView_TvInteractiveAppCallback_Handler", ApiSince=33)]
public virtual void SetCallback(Java.Util.Concurrent.IExecutor executor, Android.Media.TV.Interactive.TvInteractiveAppView.TvInteractiveAppCallback callback);
[<Android.Runtime.Register("setCallback", "(Ljava/util/concurrent/Executor;Landroid/media/tv/interactive/TvInteractiveAppView$TvInteractiveAppCallback;)V", "GetSetCallback_Ljava_util_concurrent_Executor_Landroid_media_tv_interactive_TvInteractiveAppView_TvInteractiveAppCallback_Handler", ApiSince=33)>]
abstract member SetCallback : Java.Util.Concurrent.IExecutor * Android.Media.TV.Interactive.TvInteractiveAppView.TvInteractiveAppCallback -> unit
override this.SetCallback : Java.Util.Concurrent.IExecutor * Android.Media.TV.Interactive.TvInteractiveAppView.TvInteractiveAppCallback -> 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.
the callback to receive events. MUST NOT be null.
- Attributes
Remarks
Sets the callback to be invoked when an event is dispatched to this TvInteractiveAppView.
Android reference for android.media.tv.interactive.TvInteractiveAppView.setCallback.
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.