MapIndoorSelectorScope

Scope for IndoorSelector, IndoorSelectorControl, and other indoor-related composables within MapboxMap.

Use IndoorSelector to display the default indoor floor-selection ornament. Use IndoorSelectorControl when you want to manage indoor state but render your own UI.

Functions

Link copied to clipboard
fun IndoorSelector(modifier: Modifier = Modifier, state: IndoorSelectorState = rememberIndoorSelectorState(), contentPadding: PaddingValues = PaddingValues(4.dp), alignment: Alignment = Alignment.TopEnd, maxVisibleFloors: Int = MAX_VISIBLE_ITEMS, control: @Composable MapIndoorSelectorScope.() -> Unit = { IndoorSelectorControl(state) }, onFloorClicked: (IndoorFloor) -> Unit? = null)

Displays the indoor floor-selector ornament, anchored to the map.

Link copied to clipboard
fun IndoorSelectorControl(state: IndoorSelectorState = rememberIndoorSelectorState())

Headless composable that attaches the indoor plugin to state without rendering any UI.