Språk

TvInteractiveAppView.SetCallback Method

Definition

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

The executor used to dispatch some calls to callback. This value cannot be null. The view invokes some callbacks directly, such as OnTeletextAppStateChanged(String, Int32), without using this executor. To dispatch callbacks that use the executor on the main thread, use MainExecutor. Otherwise, provide an executor that dispatches to an appropriate thread.

callback
TvInteractiveAppView.TvInteractiveAppCallback

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.

Applies to