SettingsSearchViewModel

Backs the search field on the Settings screen.

The catalog's text is resolved once, not per keystroke: reading a string resource suspends, and there are several hundred of them. Matching then runs over the resolved copy.

Constructors

Link copied to clipboard
constructor(fieldFocus: SettingsFieldFocus)

Properties

Link copied to clipboard
val query: StateFlow<String>
Link copied to clipboard

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard

Records the control the chosen result names, so the screen it opens can scroll to it. Returns the screen.

Link copied to clipboard
Link copied to clipboard
fun setQuery(query: String)