Interface used by MapsIndoors to communicate with floor selector UIs.

Export

MPFloorSelectorInterface

interface MPFloorSelectorInterface {
    isAutoFloorChangeEnabled(): boolean;
    setFloors(floors): void;
    setOnFloorSelectionChangedListener(listener): void;
    setSelectedFloor(floor): void;
    setSelectedFloorByFloorIndex(floorIndex): void;
    setUserPositionFloor(floorIndex): void;
    show(show, animated): void;
    zoomLevelChanged(newZoomLevel): 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

Generated using TypeDoc