display property
The reason property represents why the VRDisplay event has been fired.
This property is read-only.
Syntax
JavaScript |
---|
reason = object.display |
Property values
Type: VRDisplayEventReason
Remarks
The VRDisplayEventReason
enum 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. |