PlatformStorage.GlobalSearchContext.Builder

public static final class PlatformStorage.GlobalSearchContext.Builder
extends Object

java.lang.Object
   ↳ androidx.appsearch.platformstorage.PlatformStorage.GlobalSearchContext.Builder


Builder for PlatformStorage.GlobalSearchContext objects.

Summary

Public constructors

Builder(Context context)

Public methods

PlatformStorage.GlobalSearchContext build()

Builds a PlatformStorage.GlobalSearchContext instance.

PlatformStorage.GlobalSearchContext.Builder setWorkerExecutor(Executor executor)

Sets the worker executor associated with GlobalSearchSession.

Inherited methods

Public constructors

Builder

public Builder (Context context)

Parameters
context Context

Public methods

setWorkerExecutor

public PlatformStorage.GlobalSearchContext.Builder setWorkerExecutor (Executor executor)

Sets the worker executor associated with GlobalSearchSession.

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

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

Returns
PlatformStorage.GlobalSearchContext.Builder