Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • XR

Index

Constructors

constructor

Methods

addPluggable

  • addPluggable(pluggable: XRProvider): Promise<object>

configure

enableAudio

  • enableAudio(sceneName: string, provider?: string): void
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns void

enterVR

  • enterVR(sceneName: string, provider?: string): void
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns void

exitVR

  • exitVR(sceneName: string, provider?: string): void
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns void

getSceneController

  • getSceneController(sceneName: string, provider?: string): any
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns any

isMuted

  • isMuted(sceneName: string, provider?: string): boolean
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns boolean

isSceneLoaded

  • isSceneLoaded(sceneName: string, provider?: string): boolean
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns boolean

isVRCapable

  • isVRCapable(sceneName: string, provider?: string): boolean
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns boolean

isVRPresentationActive

  • isVRPresentationActive(sceneName: string, provider?: string): boolean
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns boolean

loadScene

  • loadScene(sceneName: string, domElementId: string, sceneOptions?: SceneOptions, provider?: string): Promise<any>
  • Parameters

    • sceneName: string
    • domElementId: string
    • Default value sceneOptions: SceneOptions = {}
    • Default value provider: string = this._defaultProvider

    Returns Promise<any>

onSceneEvent

  • onSceneEvent(sceneName: string, eventName: string, eventHandler: Function, provider?: string): void
  • Parameters

    • sceneName: string
    • eventName: string
    • eventHandler: Function
    • Default value provider: string = this._defaultProvider

    Returns void

setMuted

  • setMuted(sceneName: string, muted: boolean, provider?: string): void
  • Parameters

    • sceneName: string
    • muted: boolean
    • Default value provider: string = this._defaultProvider

    Returns void

start

  • start(sceneName: string, provider?: string): void
  • Parameters

    • sceneName: string
    • Default value provider: string = this._defaultProvider

    Returns void