Interface used by MapsIndoors to communicate with floor selector UIs.

MPFloorSelectorInterface

interface MPFloorSelectorInterface {
    isAutoFloorChangeEnabled(): boolean;
    setFloors(floors: MPFloor[]): void;
    setOnFloorSelectionChangedListener(
        listener: OnFloorSelectionChangedListener,
    ): void;
    setSelectedFloor(floor: MPFloor): void;
    setSelectedFloorByFloorIndex(floorIndex: number): void;
    setUserPositionFloor(floorIndex: number): void;
    show(show: boolean, animated: boolean): void;
    zoomLevelChanged(newZoomLevel: number): void;
}

Methods

  • Whether to allow the floor to automatically change, eg. when panning to a new building that does not have the current floor.

    Returns boolean

  • Update the floors shown in the selector.

    Parameters

    Returns void

  • NB: This is used internally in the SDK, overwriting the listener will result in functionality loss.

    Set a listener that listens for when a floor is selected in the floor selector.

    Returns void

  • Invoked when a floor has been selected programmatically.

    Parameters

    Returns void

  • Invoked when a floor has been selected programmatically by index.

    Parameters

    • floorIndex: number

    Returns void

  • Invoked when user positioning changes floorIndex.

    Parameters

    • floorIndex: number

    Returns void

  • Show/Hide the floor selector, this is called when a building comes into/out of view.

    Parameters

    • show: boolean
    • animated: boolean

    Returns void

  • Invoked when the zoom level changes.

    Parameters

    • newZoomLevel: number

    Returns void

MMNEPVFCICPMFPCPTTAAATR