Context.MainExecutor 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳 和 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。