SettingsViewModel

Loads the host's settings for the settings list.

The SettingsProvider builds its config from resources, which is main-safe, so it needs no dispatcher. A config with no category is Loadable.Empty; a provider that throws is Loadable.Failed, reported to telemetry.

Constructors

Link copied to clipboard
constructor(settingsProvider: SettingsProvider, telemetryRepository: TelemetryRepository)

Properties

Link copied to clipboard
val messages: StateFlow<ImmutableList<UiMessage>>
Link copied to clipboard
val state: StateFlow<SettingsUiState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard