共用方式為


Context.MainExecutor 屬性

定義

Executor傳回 ,它會在與此內容相關聯的主線程上執行加入佇列的工作。

public virtual Java.Util.Concurrent.IExecutor? MainExecutor { [Android.Runtime.Register("getMainExecutor", "()Ljava/util/concurrent/Executor;", "GetGetMainExecutorHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getMainExecutor", "()Ljava/util/concurrent/Executor;", "GetGetMainExecutorHandler", ApiSince=28)>]
member this.MainExecutor : Java.Util.Concurrent.IExecutor

屬性值

屬性

備註

Executor傳回 ,它會在與此內容相關聯的主線程上執行加入佇列的工作。 這是用來將呼叫分派至應用程式元件(活動、服務等)的線程。

android.content.Context.getMainExecutor()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於