Added in API level 31

SearchContext


class SearchContext
kotlin.Any
   ↳ android.app.appsearch.AppSearchManager.SearchContext

Contains information about how to create the search session.

Summary

Nested classes

Builder for SearchContext objects.

Public methods
String

Returns the name of the database to create or open.

Public methods

getDatabaseName

Added in API level 31
fun getDatabaseName(): String

Returns the name of the database to create or open.

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

Return
String This value cannot be null.