Companion

object Companion

Properties

Link copied to clipboard

Default AppSearch database name under the app's private storage.

Functions

Link copied to clipboard
fun fromContext(context: Context, databaseName: String = DEFAULT_DATABASE_NAME): AppSearchMemoryService

Builds an AppSearchMemoryService backed by an AppSearch LocalStorage database named databaseName in the app's private storage. Uses Context.getApplicationContext to avoid leaking an Activity. The AppSearch session is opened lazily on first use.