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 ,會在與此上下文相關的主執行緒上執行已排隊的任務。 這是用來調度呼叫給應用程式元件(活動、服務等)的執行緒。

Java 文件 android.content.Context.getMainExecutor()

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

適用於