-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMPFloorSelectorInterface.ts
63 lines (62 loc) · 1.92 KB
/
MPFloorSelectorInterface.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { MPFloor, OnFloorSelectionChangedListener } from "../../index";
/**
* Interface used by MapsIndoors to communicate with floor selector UIs.
*
* @export
* @interface MPFloorSelectorInterface
* @typedef {MPFloorSelectorInterface}
*/
export interface MPFloorSelectorInterface {
/**
* Update the floors shown in the selector.
*
* @param {(Array<MPFloor> | undefined)} floors
*/
setFloors(floors: Array<MPFloor> | undefined): 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.
*
* @param {OnFloorSelectionChangedListener} listener
*/
setOnFloorSelectionChangedListener(listener: OnFloorSelectionChangedListener): void;
/**
* Show/Hide the floor selector, this is called when a building comes into/out of view.
*
* @param {boolean} show
* @param {boolean} animated
*/
show(show: boolean, animated: boolean): void;
/**
* Invoked when a floor has been selected programmatically.
*
* @param {MPFloor} floor
*/
setSelectedFloor(floor: MPFloor): void;
/**
* Invoked when a floor has been selected programmatically by index.
*
* @param {number} floorIndex
*/
setSelectedFloorByFloorIndex(floorIndex: number): void;
/**
* Invoked when the zoom level changes.
*
* @param {number} newZoomLevel
*/
zoomLevelChanged(newZoomLevel: number): void;
/**
* Whether to allow the floor to automatically change,
* eg. when panning to a new building that does not have the current floor.
*
* @returns {boolean}
*/
isAutoFloorChangeEnabled(): boolean;
/**
* Invoked when user positioning changes floorIndex.
*
* @param {number} floorIndex
*/
setUserPositionFloor(floorIndex: number): void;
}