Share via


VRStageParameters Dictionary object

The VRDisplayEventInit dictionary initializes a VRDisplayEvent object.

Dictionary

Member Type Description
display VRDisplay The VRDisplay associated with this event.
reason VRDisplayEventReason A VRDisplayEventReason enum describing why this event has been fired.

 

Remarks

The VRDisplayEventReason enum (the type of the reason dictionary member) has the following enumerations:

Member Description
"mounted" The VRDisplay has detected that the user has put on the device
"navigation" The page has been navigated to from a context that allows it to begin presenting immediately. An example would be navigating from one site in VR presentation mode to another site.
"requested" The site has requested to start presentation mode.
"unmounted" The VRDisplay has detected that the user has taken off the device.

 

See also

VRDisplayEvent