語言

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

這個值不可能為零值。 回調與監聽事件透過此執行器派遣,提供簡便控制使用執行緒的方式。 要透過應用程式的主執行緒派發事件,可以使用 Context.getMainExecutor()。 否則,提供一個執行者,將執行者派遣到適當的執行緒。

callback
TvInteractiveAppView.TvInteractiveAppCallback

回撥接收事件。 不能是零。

屬性

備註

設定回調在事件被派遣到此 TvInteractiveAppView 時被呼叫。

Android 參考資料。android.media.tv.interactive.TvInteractiveAppView.setCallback

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於