Package-level declarations

Types

Link copied to clipboard
data class SettingsUiState(val settings: AppSettings = AppSettings(), val keys: List<KeySummary> = emptyList(), val apiApps: List<ApiAppEntity> = emptyList(), val status: String? = null, val accessibilityEnabled: Boolean = false)

Immutable UI state for the settings screen.

Link copied to clipboard
class SettingsViewModel @Inject constructor(keyRepository: KeyRepository, settingsRepository: SettingsRepository, apiAppDao: ApiAppDao, apiAllowedKeyDao: ApiAllowedKeyDao) : ViewModel

ViewModel that combines persisted settings, keys, granted API apps and accessibility state into a single SettingsUiState and applies user changes.

Functions

Link copied to clipboard
fun SettingsScreen(onBack: () -> Unit, onOpenQrKeys: () -> Unit = {}, onOpenSmartCard: () -> Unit = {}, showBack: Boolean = true, isActive: Boolean = true, viewModel: SettingsViewModel = hiltViewModel(), overlayViewModel: OverlayConfigViewModel = hiltViewModel())

Settings screen composable.