PlayServicesStorage.GlobalSearchContext.Builder


class PlayServicesStorage.GlobalSearchContext.Builder


Builder for GlobalSearchContext objects.

Summary

Public constructors

Builder(context: Context)

Public constructors

Builder

Added in 1.1.0-alpha06
Builder(context: Context)

Public functions

setWorkerExecutor

Added in 1.1.0-alpha06
fun setWorkerExecutor(executor: Executor): PlayServicesStorage.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.