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()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于