public final class

PlayServicesStorage.GlobalSearchContext.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.playservicesstorage.PlayServicesStorage.GlobalSearchContext.Builder

Overview

Builder for PlayServicesStorage.GlobalSearchContext objects.

Summary

Constructors
publicBuilder(Context context)

Methods
public PlayServicesStorage.GlobalSearchContextbuild()

Builds a PlayServicesStorage.GlobalSearchContext instance.

public PlayServicesStorage.GlobalSearchContext.BuildersetWorkerExecutor(java.util.concurrent.Executor executor)

Sets the worker executor associated with GlobalSearchSession.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(Context context)

Methods

public PlayServicesStorage.GlobalSearchContext.Builder setWorkerExecutor(java.util.concurrent.Executor executor)

Sets the worker executor associated with GlobalSearchSession.

If an executor is not provided, the AppSearch default executor will be used.

Parameters:

executor: the worker executor used to run heavy background tasks.

Builds a PlayServicesStorage.GlobalSearchContext instance.