Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class ActionButtonState(val action: Action, val countDown: Boolean)
Link copied to clipboard
class ChargeRouteHelper(appStore: AppStore, observeEvData: ObserveEvData, routeTrimmer: RouteTrimmer, observeMinChargePoint: ObserveMinChargePoint)
Link copied to clipboard
class DestinationPreviewContentBuilder(destinationViewModel: DestinationViewModel, observeFavorites: ObserveFavoritesUseCase, ratingConfig: RatingConfig, dashEvRefreshLocationProvider: DashEvRefreshLocationProvider, formatter: DistanceAndTimeFormatter, locale: Locale, getNearbyDestinationsGroups: GetNearbyDestinationsGroupsUseCase, resources: Resources)
Link copied to clipboard

Represents a layout for previewing destination information with customizable blocks.

Link copied to clipboard
class DestinationPreviewViewState(val visible: State<Boolean> = mutableStateOf(false), val skipDestinationPreview: State<Boolean> = mutableStateOf(false), val destinationState: State<DestinationState> = mutableStateOf(DestinationState.WaitingData), val leftButtonState: State<ActionButtonState?> = mutableStateOf(value = null), val rightButtonState: State<ActionButtonState?> = mutableStateOf(value = null), val alreadyOnTheRoute: State<Boolean> = mutableStateOf(value = false), val focusedElement: State<FocusedElement?> = mutableStateOf(value = null), val titleSingleLine: State<Boolean> = mutableStateOf(value = false), val collapseBottomSheetEvent: Flow<Unit> = emptyFlow(), val destinationResult: State<DestinationResult?> = mutableStateOf(null), val previewLayout: State<DestinationPreviewLayout?> = mutableStateOf(null), val onClickLeftButton: () -> Unit = {}, val onClickRightButton: () -> Unit = {}, val onClickFavorite: (DestinationSearchResult, String) -> Unit = { _, _ -> }, val onClickFeedback: () -> Unit = {}, val onDestinationGroupClick: (String, NearbyDestinationsGroup) -> Unit = { _, _ -> }, val onRoutePreviewRetryClick: () -> Unit = {})
Link copied to clipboard

Represents detailed information about a destination, including various attributes like arrival information, charge time, weather conditions, ratings, and more.

Link copied to clipboard
class DestinationViewModel(appStore: AppStore, backToSearchResults: BackToSearchResultsUseCase, observeDestinationState: ObserveDestinationStateUseCase, observePreviewVisibility: ObserveDestinationPreviewVisibilityUseCase, observeParkingBreakEnabled: ObserveParkingBreakEnabledUseCase, observeShowRoutePreview: ObserveShowRoutePreviewUseCase, updateNavigationRoutes: UpdateNavigationRoutesUseCase, analytics: DestinationPreviewAnalytics, previewRoute: PreviewRouteToPreviewResultUseCase, addWaypoint: AddWaypointUseCase, removeWaypoint: RemoveSelectedWaypointUseCase, cancelRoutePreview: StopPreviewNavigationUseCase, navigate: NavigateUseCase, favoriteAnalytics: FavoriteAnalytics, searchAnalytics: SearchAnalytics, observeMapMoving: ObserveMapMovingUseCase, openFeedback: OpenFeedbackUseCase, configRepository: ConfigRepository, placeWeatherFormatter: PlaceWeatherFormatter, placeWeatherIconProvider: PlaceWeatherIconProvider, batteryCapacity: Flow<Int?>, dashEvLocationProvider: DashEvLocationProvider, chargeRouteHelper: ChargeRouteHelper, searchStore: SearchStore, routeTrimmer: RouteTrimmer, observeMinChargePoint: ObserveMinChargePoint, fetchRoundTripSocUseCase: FetchRoundTripSocUseCase) : ViewModel
Link copied to clipboard
class FiltersViewModel(evFilterButtonVisibility: EvFilterButtonVisibilityUseCase, observeMapMoving: ObserveMapMovingUseCase, closeBackButtonHandler: CloseBackButtonHandler, settingsRepository: SettingsRepository, repeatLastSearch: RepeatLastSearchUseCase) : ViewModel
Link copied to clipboard
class FiltersViewState(val visible: State<Boolean> = mutableStateOf(false), val available: State<Boolean> = mutableStateOf(false), val openNow: State<Boolean> = mutableStateOf(false), val plugCharge: State<Boolean> = mutableStateOf(false), val collapseBottomSheetEvent: Flow<Unit> = emptyFlow(), val onAvailableChange: (enabled: Boolean) -> Unit = {}, val onOpenNowChange: (enabled: Boolean) -> Unit = {}, val onPlugChargeChange: (enabled: Boolean) -> Unit = {}, val onClickApply: () -> Unit = {})
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun rememberDestinationPreviewViewState(destinationViewModel: DestinationViewModel, placesPreviewViewModel: PlacesPreviewViewModel, observeFavoritesUseCase: ObserveFavoritesUseCase, favoritePlaceViewModel: FavoritePlaceViewModel, nearbyDestinationsViewModel: NearbyDestinationsViewModel, ratingConfig: RatingConfig, dashEvRefreshLocationProvider: DashEvRefreshLocationProvider, dateTimeFormatter: DistanceAndTimeFormatter, layoutEditor: DashLayoutEditor, locale: Locale, getNearbyDestinationsGroups: GetNearbyDestinationsGroupsUseCase): DestinationPreviewViewState
Link copied to clipboard
fun RoutesOverview(modifier: Modifier = Modifier, viewModel: RoutesOverviewViewModel = koinViewModel())
Link copied to clipboard
fun TripOverview(modifier: Modifier = Modifier, tripOverviewViewModel: TripOverviewViewModel = koinViewModel())
Link copied to clipboard
fun TripOverviewItems(modifier: Modifier = Modifier, items: List<TripOverviewItem>, onYourLocationClick: () -> Unit? = null, onAddStopClick: () -> Unit? = null, onWaypointClick: (DashSearchResult) -> Unit? = null, onEndOfChargeClick: (List<Point>) -> Unit? = null)