Package-level declarations

Types

Link copied to clipboard
data class ParkingSlotRoute(val id: String) : Route

The route to the parking slot screen

Link copied to clipboard
class ParkingSlotScreenViewModel(parkingSlotId: String, viewParkingSlot: ViewParkingSlot, occupyParkingSlot: OccupyParkingSlot, incrementParkingSlotOccupation: IncrementParkingSlotOccupation, freeParkingSlot: FreeParkingSlot, router: Router) : ViewModel
Link copied to clipboard
data class ParkingSlotUiState(val parkingSlot: ParkingSlot?, val loading: Boolean)

The state of a screen displaying the details of a parking slot (parkingSlot).

Functions

Link copied to clipboard
@TestOnly
fun ParkingSlotLayout(uiState: ParkingSlotUiState, alertState: AppAlertState, onOccupyClicked: (LocalDateTime) -> Unit, onIncrementOccupationClicked: (LocalDateTime) -> Unit, onFreeClicked: () -> Unit, onBackClicked: () -> Unit, onRefreshClicked: () -> Unit)
Link copied to clipboard
fun ParkingSlotScreen(parkingSlotId: String, vm: ParkingSlotScreenViewModel = koinViewModel { parametersOf(parkingSlotId) })

UI of the parking slot screen.

Link copied to clipboard

Utility method to provide the route to parking slot screen in a NavGraphBuilder