SolPanUiState

data class SolPanUiState(val selectedMode: TiltMode, val currentLocation: LocationData? = null, val currentOrientation: OrientationData = OrientationData(), val optimalParams: OptimalPanelParameters? = null, val isDebugFakeAlignmentActive: Boolean = false, val showTutorial: Boolean = false)

Complete UI state for the SolPan app, combining user inputs and calculated results.

This is the single source of truth for all screen rendering. The SolPanViewModel produces this state by combining reactive streams from sensors, location, preferences, and solar calculations.

Constructors

Link copied to clipboard
constructor(selectedMode: TiltMode, currentLocation: LocationData? = null, currentOrientation: OrientationData = OrientationData(), optimalParams: OptimalPanelParameters? = null, isDebugFakeAlignmentActive: Boolean = false, showTutorial: Boolean = false)

Properties

Link copied to clipboard

Latest GPS location (nullable while acquiring signal)

Link copied to clipboard

Latest device orientation from fused sensor data

Link copied to clipboard

Debug flag: if true, use synthetic location/orientation for testing

Link copied to clipboard

Calculated optimal panel azimuth/tilt for current context (nullable if calculation failed)

Link copied to clipboard

Currently active TiltMode (determines how optimal tilt is calculated)

Link copied to clipboard

Whether to display the first-use tutorial overlay