LocalStorage.GlobalSearchContext.Builder


class LocalStorage.GlobalSearchContext.Builder


Builder for GlobalSearchContext objects.

Summary

Public constructors

Builder(context: Context)

Public functions

LocalStorage.GlobalSearchContext

Builds a GlobalSearchContext instance.

LocalStorage.GlobalSearchContext.Builder

Sets the worker executor associated with GlobalSearchSession.

Public constructors

Builder

Added in 1.1.0-alpha06
Builder(context: Context)

Public functions

build

Added in 1.1.0-alpha06
fun build(): LocalStorage.GlobalSearchContext

Builds a GlobalSearchContext instance.

setWorkerExecutor

Added in 1.1.0-alpha06
fun setWorkerExecutor(executor: Executor): LocalStorage.GlobalSearchContext.Builder

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.