Package-level declarations

Types

Link copied to clipboard
class DefaultSpeedInfoViewModel(navigationManager: NavigationManager) : SpeedInfoViewModel

Default implementation of SpeedInfoViewModel that observes navigation state and provides real-time speed information during navigation.

Link copied to clipboard
data class SpeedInfoComposableColors(val currentSpeedBackground: Color, val currentSpeedText: Color, val currentSpeedBorder: Color, val speedLimitBackground: Color, val speedLimitText: Color, val speedLimitBorder: Color, val speedLimitExceededBackground: Color, val speedLimitExceededText: Color, val speedLimitExceededBorder: Color, val cameraProgressBackground: Color, val cameraProgressIndicator: Color, val cameraProgressIndicatorExceeded: Color)
Link copied to clipboard
data class SpeedInfoComposableIcons(val cameraAlong: @Composable () -> ImageVector, val cameraAgainst: @Composable () -> ImageVector, val cameraBoth: @Composable () -> ImageVector, val cameraParking: @Composable () -> ImageVector)
Link copied to clipboard
data class SpeedInfoState(val currentSpeed: Int? = null, val maxSpeedLimit: Int? = null, val isExceedingSpeedLimit: Boolean = false, val cameraProgress: CameraProgressInfo? = null)

State object containing all speed-related information for the navigation UI.

Link copied to clipboard

ViewModel interface for managing speed information during navigation. Provides a speed-related data including current speed, speed limits, and speed camera warnings.

Functions

Link copied to clipboard
fun SpeedInfoComposable(viewModel: SpeedInfoViewModel, icons: SpeedInfoComposableIcons = SpeedInfoComposableDefaults.icons, colors: SpeedInfoComposableColors = SpeedInfoComposableDefaults.colors())

Displays speed information during navigation including current speed, speed limits, and speed camera warnings.