AppSearchManager.SearchContext.Builder

public static final class AppSearchManager.SearchContext.Builder extends Object

Builder for AppSearchManager.SearchContext objects.

Public Constructor Summary

Public Method Summary

AppSearchManager.SearchContext

Inherited Method Summary

Public Constructors

public Builder (String databaseName)

Creates a new AppSearchManager.SearchContext.Builder.

AppSearchClient will create or open a database under the given name.

Databases with different names are fully separate with distinct types, namespaces, and data.

Database name cannot contain '/'.

Parameters
databaseName The name of the database.
Throws
IllegalArgumentException if the databaseName contains '/'.

Public Methods