public final class

PlatformStorage.GlobalSearchContext.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.platformstorage.PlatformStorage.GlobalSearchContext.Builder

Overview

Builder for PlatformStorage.GlobalSearchContext objects.

Summary

Constructors
publicBuilder(Context context)

Methods
public PlatformStorage.GlobalSearchContextbuild()

Builds a PlatformStorage.GlobalSearchContext instance.

public PlatformStorage.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 PlatformStorage.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 PlatformStorage.GlobalSearchContext instance.