IndoorSelector

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.

Hides itself when no indoor building is in view.

To render a custom floor-selector UI instead, use IndoorSelectorControl to attach the plugin to an IndoorSelectorState and read IndoorSelectorState.floors in your own composable.

Parameters

modifier

Modifier to apply to the ornament container.

state

IndoorSelectorState for hoisting state; use rememberIndoorSelectorState to create one.

contentPadding

Padding between the ornament and the map edge. Note that the default value might overlap with other ornaments.

alignment

Alignment of the ornament within the map bounds.

maxVisibleFloors

Maximum number of floors visible at once before scrolling.

onFloorClicked

Callback invoked when the user taps a floor item in the selector. Not called for external or programmatic floor changes.