Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
data class Actions(val primary: PrimaryAction? = PrimaryAction.PROGRESS, val secondary: SecondaryAction? = null)
Link copied to clipboard
class ChargeRouteHelper(appStore: AppStore, observeEvData: ObserveEvData, routeTrimmer: RouteTrimmer, observeMinChargePoint: ObserveMinChargePoint)
Link copied to clipboard
class DestinationPreviewContentBuilder(destinationViewModel: DestinationViewModel, favoritePlaceViewModel: FavoritePlaceViewModel, ratingConfig: RatingConfig, dashEvRefreshLocationProvider: DashEvRefreshLocationProvider, formatter: DistanceAndTimeFormatter, locale: Locale, 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 destinationState: State<DestinationState> = mutableStateOf(DestinationState.WaitingData), val leftButtonState: State<ActionButtonState?> = mutableStateOf(null), val rightButtonState: State<ActionButtonState?> = mutableStateOf(null), val alreadyOnTheRoute: State<Boolean> = mutableStateOf(false), val focusedElement: State<FocusedElement?> = mutableStateOf(null), 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, PlaceFavoriteStatus) -> Unit = { _, _ -> }, val onClickFeedback: () -> Unit = {})
Link copied to clipboard
class DestinationResult
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(chargingCategoryDisplayName: String, appStore: AppStore, backToSearchResults: BackToSearchResultsUseCase, observeDestinationState: ObserveDestinationStateUseCase, observePreviewVisibility: ObserveDestinationPreviewVisibilityUseCase, observeParkingBreakEnabled: ObserveParkingBreakEnabledUseCase, observeSkipDestinationPreview: ObserveSkipRoutePreviewUseCase, updateNavigationRoutes: UpdateNavigationRoutesUseCase, analytics: DestinationPreviewAnalytics, closeFeedbackUseCase: CloseFeedbackUseCase, previewRoute: PreviewRouteToPreviewResultUseCase, addWaypoint: AddWaypointUseCase, removeWaypoint: RemoveWaypointUseCase, cancelRoutePreview: CancelRoutePreviewUseCase, navigate: NavigateUseCase, favoriteAnalytics: FavoriteAnalytics, cancelRequest: CancelRouteRequestUseCase, searchCategory: SearchCategoryUseCase, searchAnalytics: SearchAnalytics, observeMapMoving: ObserveMapMovingUseCase, openFeedback: OpenFeedbackUseCase, placeWeatherFormatter: PlaceWeatherFormatter, placeWeatherIconProvider: PlaceWeatherIconProvider, batteryCapacity: Flow<Int?>, dashEvLocationProvider: DashEvLocationProvider, chargeRouteHelper: ChargeRouteHelper, categorySearchViewModel: CategorySearchViewModel, routeTrimmer: RouteTrimmer, observeMinChargePoint: ObserveMinChargePoint, fetchRoundTripSocUseCase: FetchRoundTripSocUseCase) : ViewModel
Link copied to clipboard
class FiltersViewModel(observeEvFilterButtonVisibility: ObserveEvFilterButtonVisibilityUseCase, 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
class ObserveEvFilterButtonVisibilityUseCase(appStore: AppStore, observePlacesState: ObservePlacesStateUseCase, isEvSearchFilterVisible: IsEvSearchFilterVisible)
Link copied to clipboard
interface PlaceWeatherFormatter
Link copied to clipboard
interface PlaceWeatherIconProvider
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class TripOverviewViewModel(updateNavigationRoutes: UpdateNavigationRoutesUseCase, backToSearchResults: BackToSearchResultsUseCase, observeTripOverviewState: ObserveTripOverviewStateUseCase, navigate: NavigateUseCase, val mapMoving: ObserveMapMovingUseCase, appStore: AppStore, chargeRouteHelper: ChargeRouteHelper, previewRoute: PreviewRouteUseCase) : ViewModel, FocusNavigationHelper
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the first TripOverviewItem that has DestinationSearchResult matching coordinates, or null
if item cannot be found
Link copied to clipboard
fun rememberDestinationPreviewViewState(destinationViewModel: DestinationViewModel, placesPreviewViewModel: PlacesPreviewViewModel, favoritePlaceViewModel: FavoritePlaceViewModel, ratingConfig: RatingConfig, dashEvRefreshLocationProvider: DashEvRefreshLocationProvider, dateTimeFormatter: DistanceAndTimeFormatter, layoutEditor: DashLayoutEditor, locale: Locale): DestinationPreviewViewState
Link copied to clipboard
Link copied to clipboard
Returns the stateOfCharge value if available.
Link copied to clipboard
fun TripOverview(modifier: Modifier = Modifier, tripOverviewViewModel: TripOverviewViewModel = koinViewModel())
Link copied to clipboard
fun TripOverviewItems(modifier: Modifier = Modifier, formatter: ArrivalInformationFormatter, items: List<TripOverviewItem>, onYourLocationClick: () -> Unit? = null, onAddStopClick: () -> Unit? = null, onWaypointClick: (DestinationSearchResult) -> Unit? = null, onEndOfChargeClick: (List<Point>) -> Unit? = null)