Conversation
As described in #542, this switches `requestSession` to a "primary type + options bag" pattern. However, since the dictionary only had a single key after outputContext was moved this change ends up removing the XRSessionCreationOptions dictionary entirely in favor of just passing in the type enum directly. In the future if additional options *are* needed for `requestSession`, the expected pattern would be: ``` navigator.xr.requestSession('immersive-vr', { option: value }); ```
|
|
||
| ```js | ||
| function beginImmersiveSession() { | ||
| xrDevice.requestSession({ immersive: true, requiredReferenceSpaceType:'unbounded' }) |
toji
mentioned this pull request
Closed
toji deleted the no-request-options branch
April 16, 2019 20:43This was referenced
Apr 16, 2019Closed
Closed