MainSettingsViewModel

class MainSettingsViewModel(observeDebugMenuVisibility: ObserveIsDebugModeEnabledUseCase, val isTrafficMenuEnabled: Boolean, val isMapGptMenuEnabled: Boolean, observeMuteVoiceInstructions: ObserveMuteVoiceInstructionsUseCase, val setMuteVoiceInstructions: SetMuteVoiceInstructionsUseCase, observeLocalTtsEnableUseCase: ObserveLocalTtsEnableUseCase, val setLocalTtsEnableUseCase: SetLocalTtsEnableUseCase, val sendPillToggledEvent: SendPillToggledEventUseCase, observe3DMapSetting: Observe3DMapSettingUseCase, set3DMap: Set3DMapUseCase, val isMap3DAvailable: Boolean, observeSatelliteModeSetting: ObserveSatelliteModeSettingUseCase, setSatelliteMode: SetSatelliteModeUseCase, val isSatelliteModeAvailable: Boolean, observeUserPreferredUnitOfMeasurementSettings: ObserveUserPreferredUnitOfMeasurementSettingsUseCase, setUserPreferredUnitsSettings: SetUserPreferredUnitsSettingsUseCase, settingsRepository: SettingsRepository, defaultUiModeSetting: UiModeSettings, observeUiModeUseCase: ObserveUiModeUseCase, observeRouteOptionsEnabledUseCase: ObserveRouteOptionsEnabledUseCase, observePreferredNetworksEnabledUseCase: ObservePreferredNetworksEnabledUseCase, observeIsElectricVehicle: ObserveIsElectricVehicle, observeSpeedLimitsOptionsEnabledUseCase: ObserveSpeedLimitsOptionsEnabledUseCase, observeLocalTTSOptionsEnabledUseCase: ObserveLocalTtsOptionsEnabledUseCase) : ViewModel

Constructors

Link copied to clipboard
constructor(observeDebugMenuVisibility: ObserveIsDebugModeEnabledUseCase, isTrafficMenuEnabled: Boolean, isMapGptMenuEnabled: Boolean, observeMuteVoiceInstructions: ObserveMuteVoiceInstructionsUseCase, setMuteVoiceInstructions: SetMuteVoiceInstructionsUseCase, observeLocalTtsEnableUseCase: ObserveLocalTtsEnableUseCase, setLocalTtsEnableUseCase: SetLocalTtsEnableUseCase, sendPillToggledEvent: SendPillToggledEventUseCase, observe3DMapSetting: Observe3DMapSettingUseCase, set3DMap: Set3DMapUseCase, isMap3DAvailable: Boolean, observeSatelliteModeSetting: ObserveSatelliteModeSettingUseCase, setSatelliteMode: SetSatelliteModeUseCase, isSatelliteModeAvailable: Boolean, observeUserPreferredUnitOfMeasurementSettings: ObserveUserPreferredUnitOfMeasurementSettingsUseCase, setUserPreferredUnitsSettings: SetUserPreferredUnitsSettingsUseCase, settingsRepository: SettingsRepository, defaultUiModeSetting: UiModeSettings, observeUiModeUseCase: ObserveUiModeUseCase, observeRouteOptionsEnabledUseCase: ObserveRouteOptionsEnabledUseCase, observePreferredNetworksEnabledUseCase: ObservePreferredNetworksEnabledUseCase, observeIsElectricVehicle: ObserveIsElectricVehicle, observeSpeedLimitsOptionsEnabledUseCase: ObserveSpeedLimitsOptionsEnabledUseCase, observeLocalTTSOptionsEnabledUseCase: ObserveLocalTtsOptionsEnabledUseCase)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val isNightTheme: StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
val localTtsEnable: StateFlow<Boolean>
Link copied to clipboard
val map3DEnabled: StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val userPreferredDistanceUnits: StateFlow<UnitOfMeasurementSettings>
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onToggleMap3d(isEnabled: Boolean)
Link copied to clipboard
Link copied to clipboard
fun onUserPreferredDistanceUnitsChanged(unitOfMeasurementSettings: UnitOfMeasurementSettings)