Package-level declarations
Types
Link copied to clipboard
private data class SdModelsRefreshKey(val source: ServerSource, val serverUrl: String, val demoMode: Boolean, val sdModel: String)
Minimal key that triggers remote model list refreshes when provider-relevant settings change.
Link copied to clipboard
class SettingsViewModel(dispatchersProvider: DispatchersProvider, getStableDiffusionModelsUseCase: GetStableDiffusionModelsUseCase, observeStabilityAiCreditsUseCase: ObserveStabilityAiCreditsUseCase, val selectStableDiffusionModelUseCase: SelectStableDiffusionModelUseCase, val clearAppCacheUseCase: ClearAppCacheUseCase, val getAllGalleryUseCase: GetAllGalleryUseCase, val getLocalOnnxModelsUseCase: GetLocalOnnxModelsUseCase, val getLocalMediaPipeModelsUseCase: GetLocalMediaPipeModelsUseCase, val getLocalSdxlModelsUseCase: GetLocalSdxlModelsUseCase, val getLocalCoreMlModelsUseCase: GetLocalCoreMlModelsUseCase, val getLocalBonsaiModelsUseCase: GetLocalBonsaiModelsUseCase, val observeNetworkUsageUseCase: ObserveNetworkUsageUseCase, val storageUsageObserver: StorageUsageObserver, val preferenceManager: PreferenceManager, val debugMenuAccessor: DebugMenuAccessor, val buildInfoProvider: BuildInfoProvider, val linksProvider: LinksProvider, val router: SettingsRouter, val platformActions: SettingsPlatformActions, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<SettingsState, SettingsIntent, EmptyEffect>
ViewModel for the Settings tab.
Properties
Functions
Link copied to clipboard
Main Settings tab screen shown inside the app bottom navigation scaffold.
Link copied to clipboard
fun SettingsScreenContent(modifier: Modifier = Modifier, state: SettingsState, platformActions: SettingsPlatformActions = NoOpSettingsPlatformActions, processIntent: (SettingsIntent) -> Unit = {})
Stateless Settings content used by the screen and tests.