Skip to main content

Class: XRButton

Defined in: src/core/components/XRButton.ts:10

Constructors

Constructor

new XRButton(sessionManager, permissionsManager, startText, endText, invalidText, startSimulatorText, showEnterSimulatorButton, startSimulator, permissions): XRButton

Defined in: src/core/components/XRButton.ts:15

Parameters

sessionManager

WebXRSessionManager

permissionsManager

PermissionsManager

startText

string = 'ENTER XR'

endText

string = 'END XR'

invalidText

string = 'XR NOT SUPPORTED'

startSimulatorText

string = 'START SIMULATOR'

showEnterSimulatorButton

boolean = false

startSimulator

() => void

permissions
camera

boolean = false

geolocation

boolean = false

microphone

boolean = false

Returns

XRButton

Properties

domElement

domElement: HTMLDivElement

Defined in: src/core/components/XRButton.ts:11


simulatorButtonElement

simulatorButtonElement: HTMLButtonElement

Defined in: src/core/components/XRButton.ts:12


startSimulator()

startSimulator: () => void

Defined in: src/core/components/XRButton.ts:23

Returns

void


xrButtonElement

xrButtonElement: HTMLButtonElement

Defined in: src/core/components/XRButton.ts:13