Package-level declarations

Types

Link copied to clipboard
class DefaultIndoorViewModel(map: Map, markedLevels: Set<LevelId> = setOf()) : IndoorViewModel

Default implementation of IndoorViewModel backed by IndoorControlModel.

Link copied to clipboard
data class IndoorComposableColors(val containerBackgroundColor: Color, val itemTextColor: Color, val itemBackgroundColor: Color, val selectedItemTextColor: Color, val selectedItemBackgroundColor: Color, val markedItemBackgroundColor: Color)
Link copied to clipboard
Link copied to clipboard
data class IndoorState(val levelNames: List<String> = emptyList(), val activeLevelIndex: Int? = null)

UI state representing the current indoor levels control state.

Link copied to clipboard
interface IndoorViewModel

ViewModel interface for the indoor levels control.

Functions

Link copied to clipboard
fun IndoorComposable(viewModel: IndoorViewModel, showRoof: Boolean = true, colors: IndoorComposableColors = IndoorComposableDefaults.colors())

A composable that displays floors of a building in a vertically oriented manner. Shows a maximum of 4 floors at a time when roof button is shown, or 5 when it is hidden. If there are more floors, scrolling is enabled.