Language

TvInteractiveAppView.SetCallback メソッド

定義

イベントがこの 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

パラメーター

executor
IExecutor

callbackにいくつかの呼び出しをディスパッチするために使用される Executor。 この値を null にすることはできません。 ビューは、この Executor を使用せずに、 OnTeletextAppStateChanged(String, Int32)などの一部のコールバックを直接呼び出します。 メイン スレッドで Executor を使用するコールバックをディスパッチするには、 MainExecutorを使用します。 それ以外の場合は、適切なスレッドにディスパッチする Executor を指定します。

callback
TvInteractiveAppView.TvInteractiveAppCallback

イベントを受信するコールバック。 null にすることはできません。

属性

注釈

イベントがこの TvInteractiveAppView にディスパッチされたときに呼び出されるコールバックを設定します。

android.media.tv.interactive.TvInteractiveAppView.setCallbackの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象