Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VirtualSession

Virtual session

See the ngx3js docs page for details.

Hierarchy

  • VirtualSession

Implements

Index

Constructors

constructor

Properties

environmentBlendMode

environmentBlendMode: XREnvironmentBlendMode

Environment blend mode of virtual session

inputSources

inputSources: XRInputSource[]

Input sources of virtual session

renderState

renderState: XRRenderState

Render state of virtual session

visibilityState

visibilityState: XRVisibilityState

Visibility state of virtual session

Methods

addEventListener

  • addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • Adds event listener

    Parameters

    • type: string
    • callback: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

cancelAnimationFrame

  • cancelAnimationFrame(id: number): void

dispatchEvent

  • dispatchEvent(event: Event): boolean

end

  • end(): Promise<void>

Optional eventListeners

  • eventListeners(eventName?: string): EventListenerOrEventListenerObject[]

hasEventListener

  • hasEventListener(type: string, listener: any): boolean

Optional removeAllListeners

  • removeAllListeners(eventName?: string): void

removeEventListener

  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
  • Removes event listener

    Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

requestAnimationFrame

requestHitTest

requestHitTestSource

requestHitTestSourceForTransientInput

requestReferenceSpace

updateRenderState

updateWorldTrackingState

  • updateWorldTrackingState(options: { planeDetectionState?: { enabled: boolean } }): void

Generated using TypeDoc