PlatformStorage.GlobalSearchContext.Builder


public final class PlatformStorage.GlobalSearchContext.Builder


Builder for GlobalSearchContext objects.

Summary

Public constructors

Public constructors

Builder

Added in 1.1.0-alpha06
public Builder(@NonNull Context context)

Public methods

setWorkerExecutor

Added in 1.1.0-alpha06
public @NonNull PlatformStorage.GlobalSearchContext.Builder setWorkerExecutor(@NonNull Executor executor)

Sets the worker executor associated with GlobalSearchSession.

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

Parameters
@NonNull Executor executor

the worker executor used to run heavy background tasks.