CompassUiState

data class CompassUiState(val targetName: String = "", val targetColor: Color = Color(DEFAULT_TARGET_COLOR_HEX), val heading: Float? = null, val bearing: Float? = null, val distanceText: String? = null, val bearingText: String? = null, val lastUpdateAgeSeconds: Long? = null, val positionTimeSec: Long? = null, val warnings: List<CompassWarning> = emptyList(), val errorRadiusText: String? = null, val angularErrorDeg: Float? = null, val isAligned: Boolean = false, val hasTargetPosition: Boolean = true, val displayUnits: MeasurementSystem = MeasurementSystem.METRIC, val targetAltitude: Int? = null)(source)

Render-ready state for the compass sheet (heading, bearing, distances, and warnings).

Constructors

Link copied to clipboard
constructor(targetName: String = "", targetColor: Color = Color(DEFAULT_TARGET_COLOR_HEX), heading: Float? = null, bearing: Float? = null, distanceText: String? = null, bearingText: String? = null, lastUpdateAgeSeconds: Long? = null, positionTimeSec: Long? = null, warnings: List<CompassWarning> = emptyList(), errorRadiusText: String? = null, angularErrorDeg: Float? = null, isAligned: Boolean = false, hasTargetPosition: Boolean = true, displayUnits: MeasurementSystem = MeasurementSystem.METRIC, targetAltitude: Int? = null)

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
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