IndoorSelectorPlugin

Plugin interface for indoor floor selector. Displays a vertical list of floors with navigation controls.

The plugin automatically subscribes to IndoorManager events and updates the UI when floor data is available. The UI is automatically shown/hidden based on indoor data availability.

Example usage:

// Configure the plugin (optional - defaults are provided)
mapView.indoorSelector.updateSettings {
enabled = true
}

Functions

Link copied to clipboard

Add a floor selection listener to be notified when user selects a floor.

Link copied to clipboard
abstract fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View

Bind a view instance

Link copied to clipboard
open fun cleanup()

Called when the map is destroyed. Should be used to cleanup plugin resources for that map.

Link copied to clipboard

Get current indoorselector configuration.

Link copied to clipboard
open fun initialize()

Called when the plugin is first added to the map.

Link copied to clipboard
open fun onDelegateProvider(delegateProvider: MapDelegateProvider)

Provides all map delegate instances.

Link copied to clipboard
abstract fun onFloorSelected(floorId: String)

Called when a floor is selected by the user.

Link copied to clipboard
open fun onPluginView(view: View)

Provides a view instances returned in inflate after it's been added to the MapView.

Link copied to clipboard
open fun onStart()

Called whenever activity's/fragment's lifecycle is entering a "started" state.

Link copied to clipboard
open fun onStop()

Called whenever activity's/fragment's lifecycle is entering a "stopped" state.

Link copied to clipboard

Remove a previously added floor selection listener.

Link copied to clipboard
abstract fun updateFloors(floors: List<IndoorFloor>, selectedFloorId: String?)

Update the list of available floors and the currently selected floor.

Link copied to clipboard

Update indoorselector configuration, the update will be applied to the plugin automatically.

Properties

Link copied to clipboard
abstract var enabled: Boolean

Whether the indoor selector is visible on the map. Default value: true.

Link copied to clipboard
abstract var marginBottom: Float

Defines the margin to the bottom that the indoor selector honors. Default value: 8.

Link copied to clipboard
abstract var marginLeft: Float

Defines the margin to the left that the indoor selector honors. Default value: 8.

Link copied to clipboard
abstract var marginRight: Float

Defines the margin to the right that the indoor selector honors. Default value: 8.

Link copied to clipboard
abstract var marginTop: Float

Defines the margin to the top that the indoor selector honors. Default value: 60.

Link copied to clipboard
abstract var position: Int

Defines where the indoor selector is positioned on the map. Default value: "top-right".