toji · GitHub

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 });
```

@toji toji added the agenda

Request discussion in the next telecon/FTF

label

Mar 21, 2019

@toji toji removed agenda

Request discussion in the next telecon/FTF

labels

Mar 29, 2019

NellWaliczek


```js
function beginImmersiveSession() {
xrDevice.requestSession({ immersive: true, requiredReferenceSpaceType:'unbounded' })

@toji toji mentioned this pull request

Apr 16, 2019

Closed

@toji

@toji

toji deleted the no-request-options branch

April 16, 2019 20:43

This was referenced

Apr 16, 2019

Closed

Closed

Read the original on github.com ↗