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-alpha07
Builder(context: Context)

Public functions

setWorkerExecutor

Added in 1.1.0-alpha07
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.