共用方式為


AppWidgetHostView.SetExecutor(IExecutor) Method

Definition

Sets an executor which can be used for asynchronously inflating.

[Android.Runtime.Register("setExecutor", "(Ljava/util/concurrent/Executor;)V", "GetSetExecutor_Ljava_util_concurrent_Executor_Handler", ApiSince=26)]
public virtual void SetExecutor (Java.Util.Concurrent.IExecutor? executor);
[<Android.Runtime.Register("setExecutor", "(Ljava/util/concurrent/Executor;)V", "GetSetExecutor_Ljava_util_concurrent_Executor_Handler", ApiSince=26)>]
abstract member SetExecutor : Java.Util.Concurrent.IExecutor -> unit
override this.SetExecutor : Java.Util.Concurrent.IExecutor -> unit

Parameters

executor
IExecutor

the executor to use or null.

Attributes

Remarks

Sets an executor which can be used for asynchronously inflating. CPU intensive tasks like view inflation or loading images will be performed on the executor. The updates will still be applied on the UI thread.

Java documentation for android.appwidget.AppWidgetHostView.setExecutor(java.util.concurrent.Executor).

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