# Print output for @column tags ?>
public
static
final
class
AppSearchManager.SearchContext.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.appsearch.AppSearchManager.SearchContext.Builder |
Builder for SearchContext objects.
Public constructors | |
|---|---|
Builder(String databaseName)
Creates a new |
|
Public methods | |
|---|---|
AppSearchManager.SearchContext
|
build()
Builds a |
Inherited methods | |
|---|---|
public Builder (String databaseName)
Creates a new SearchContext.Builder.
AppSearchSession 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 |
String: The name of the database.
This value cannot be null. |
| Throws | |
|---|---|
IllegalArgumentException |
if the databaseName contains '/'. |
public AppSearchManager.SearchContext build ()
Builds a SearchContext instance.
| Returns | |
|---|---|
AppSearchManager.SearchContext |
This value cannot be null. |