Sdílet prostřednictvím


Context.MainExecutor Property

Definition

Return an Executor that will run enqueued tasks on the main thread associated with this context.

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

Property Value

Attributes

Remarks

Return an Executor that will run enqueued tasks on the main thread associated with this context. This is the thread used to dispatch calls to application components (activities, services, etc).

Java documentation for android.content.Context.getMainExecutor().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to