VRDisplayCapabilities object

The VRDisplayEvent object is used to represent events that occur in relation to a VRDisplay object.

Syntax

 var displayEvent = new VRDisplayEvent(type, eventInitDict); 

Members

The VRDisplayCapabilities object has these types of members:

  • Properties

Properties

The VRDisplayCapabilities object has these properties.

Property Access type Description

display

Read-only

The display property represents the VRDisplay associated with this event.

reason

Read-only

The reason property represents why the VRDisplay event has been fired.

 

Remarks

The VRDisplayEvent constructor includes the following parameters:

Parameter Type Description
type DOMString Specifies the event type.
eventInitDict VRDisplayEventInit Specifies the VRDisplay involved with the event and why it was fired.