CompassViewModel

Manages the state and behavior of the compass control. Provides the current bearing and handles user interactions.

Inheritors

Properties

Link copied to clipboard
abstract val bearing: StateFlow<Double>

Observable state of the current map bearing in degrees. A value of 0.0 means the map is aligned with true north.

Functions

Link copied to clipboard
abstract fun onCleared()

Releases resources when the view model is no longer needed.

Link copied to clipboard
abstract fun onClicked()

Called when the user clicks the compass button. Typically resets the map bearing to north (0.0).