TripState

data class TripState(val waypoints: List<DestinationSearchResult> = emptyList(), val markers: List<Marker> = emptyList(), val routes: List<NavigationRoute> = emptyList(), val routeWithChargers: NavigationRoute? = null, val currentLegIndex: Int = 0, savedState: TripState? = null)

Constructors

Link copied to clipboard
constructor(waypoints: List<DestinationSearchResult> = emptyList(), markers: List<Marker> = emptyList(), routes: List<NavigationRoute> = emptyList(), routeWithChargers: NavigationRoute? = null, currentLegIndex: Int = 0, savedState: TripState? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val route: NavigationRoute?
Link copied to clipboard
val routes: List<NavigationRoute>
Link copied to clipboard
val routeWithChargers: NavigationRoute? = null
Link copied to clipboard

Functions

Link copied to clipboard

Applies changes from editing mode, if any, and cleans up saved state.

Link copied to clipboard

Saves current state and switches to editing mode. It's possible to switch to editing mode only once, all subsequent calls will be ignored.

Link copied to clipboard
Link copied to clipboard

Drops current changes and switches back to the saved state.