Package-level declarations
Types
Link copied to clipboard
data class TripSummaryExpandableViewState(val tripSummaryModel: State<TripSummaryModel?> = mutableStateOf(null), val tripOverviewItems: State<List<TripOverviewItem>> = mutableStateOf(emptyList()), val bottomSheetState: BottomSheetState = BottomSheetState(BottomSheetValue.Collapsed), val etaPanelConfig: State<DashEtaPanelConfig> = mutableStateOf(DashEtaPanelConfig.Builder().build()), val onEndActiveGuidance: () -> Unit = {}, val onEditTrip: () -> Unit = {}, val onOpenCommonSearchClick: () -> Unit = {}, val onOpenSearchForChargeClick: (List<Point>) -> Unit = {}, val onWaypointClick: (DashSearchResult) -> Unit = {})
Link copied to clipboard
data class TripSummarySimpleViewState(val tripSummaryModel: TripSummaryModel? = null, val removeStopVisible: Boolean = false, val endActiveGuidanceVisible: Boolean = false, val settingsMenuVisible: Boolean = false, val largeViewVisible: Boolean = false, val tripSummaryVisible: Boolean = false, val oneClickEndRoute: Boolean = false, val highlightedElement: TripSummarySimpleViewState.HighlightedElement = HighlightedElement.None, val onRemoveWaypointButtonClick: () -> Unit = {}, val onEndActiveGuidanceButtonClick: () -> Unit = {}, val onEndActiveGuidanceIconClick: () -> Unit = {}, val onSearchIconClick: () -> Unit = {})
Link copied to clipboard
typealias TripSummaryUiComposable = @Composable (modifier: Modifier, state: TripSummaryUiState) -> Unit?
Link copied to clipboard
class TripSummaryUiState @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX] ) constructor(val tripSummaryModel: TripSummaryModel, val tripOverviewItems: List<TripOverviewItem> = emptyList(), val onEndActiveGuidanceClick: () -> Unit = {}, val onEditTripClick: () -> Unit = {}, val onOpenFullScreenSearchClick: () -> Unit = {}, val onOpenSearchForChargeClick: (List<Point>) -> Unit = {}, val onWaypointClick: (DashSearchResult) -> Unit = {})
Link copied to clipboard
class TripSummaryViewModel(appStore: AppStore, removeSelectedWaypoint: RemoveSelectedWaypointUseCase, observeRouteProgressUseCase: ObserveRouteProgressUseCase, observeTripSummaryModel: ObserveTripSummaryModelUseCase, overviewSearchResultWithCurrentRoute: OverviewSearchResultWithCurrentRoute, stopNavigation: StopNavigationUseCase, routeAnalyticsEventsSender: RouteAnalyticsEventsSender, configRepository: ConfigRepository, chargeRouteHelper: ChargeRouteHelper, mapGptManager: InternalMapGptManager) : ViewModel, FocusNavigationHelper
Link copied to clipboard
data class TripSummaryViewState(val visible: State<Boolean> = mutableStateOf(false), val tripSummaryExpandableViewState: State<TripSummaryExpandableViewState> = mutableStateOf(TripSummaryExpandableViewState()), val tripSummarySimpleViewState: State<TripSummarySimpleViewState> = mutableStateOf(TripSummarySimpleViewState()))
Functions
Link copied to clipboard
fun EndActiveGuidanceView(modifier: Modifier = Modifier, removeStopVisible: Boolean = true, onRemoveWaypointClick: () -> Unit = {}, onLargeActiveGuidanceClick: () -> Unit = {})
Link copied to clipboard
Link copied to clipboard
fun EtaPanelExpandable(modifier: Modifier, etaPanelConfig: DashEtaPanelConfig, arrivalTime: String = "12:18 pm", remainingDistance: String = "2.1 mi", remainingTime: String = "10 min", isOffline: Boolean = false, stateOfCharge: Int? = null, traveledToRemainingRatio: Float = 2.0f, expandedFraction: Float = 0.0f, trafficGradientStops: Array<Pair<Float, Color?>> = arrayOf(
(0.150f to Color.Yellow),
(0.450f to Color.Red),
(0.650f to Color.Blue),
), waypointsData: List<WaypointData> = listOf(
WaypointData(-0.9f, false),
WaypointData(0f, false),
WaypointData(0.7f, true),
), onArrowClick: () -> Unit = {})
Link copied to clipboard
Link copied to clipboard
fun rememberTripSummaryViewState(tripSummaryViewModel: TripSummaryViewModel, categorySearchViewModel: CategorySearchViewModel, onOpenCommonSearchClick: () -> Unit): TripSummaryViewState
Link copied to clipboard
fun TripProgress(modifier: Modifier = Modifier, traveledToRemainingRatio: Float = 2.0f, trafficGradientStops: Array<Pair<Float, Color?>> = arrayOf(
(0.150f to Color.Yellow),
(0.450f to Color.Red),
(0.650f to Color.Blue),
), waypointsData: List<WaypointData> = listOf(
WaypointData(-0.9f, false),
WaypointData(0f, false),
WaypointData(0.7f, true),
))
Link copied to clipboard
Link copied to clipboard