1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { SceneOptions } from './XR';
|
15 |
|
16 | export interface XRProvider {
|
17 |
|
18 | configure(config: object): object;
|
19 |
|
20 |
|
21 | getCategory(): string;
|
22 |
|
23 |
|
24 | getProviderName(): string;
|
25 |
|
26 | loadScene(
|
27 | sceneName: string,
|
28 | domElementId: string,
|
29 | sceneOptions: SceneOptions
|
30 | );
|
31 | isSceneLoaded(sceneName): boolean;
|
32 | getSceneController(sceneName: string): any;
|
33 | isVRCapable(sceneName: string): boolean;
|
34 | isVRPresentationActive(sceneName: string): boolean;
|
35 | start(sceneName: string): void;
|
36 | enterVR(sceneName: string): void;
|
37 | exitVR(sceneName: string): void;
|
38 | isMuted(sceneName: string): boolean;
|
39 | setMuted(sceneName: string, muted: boolean): void;
|
40 | onSceneEvent(
|
41 | sceneName: string,
|
42 | eventName: string,
|
43 | eventHandler: Function
|
44 | ): void;
|
45 | enableAudio(sceneName: string): void;
|
46 | }
|