XRInputSourcesChangeEventInit.session

Secure context

This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The XRInputSourcesChangeEventInit property session specifies the XRSession to which the input source list change event applies.

Syntax

let inputSourcesEventInit = {
  session: xrSession,
  added: [newDevice1, ..., newDeviceN],
  removed: [removedDevice1, ..., newDeviceN],
};
myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange", inputSourcesEventInit);

myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange",
                            {
                              session: xrSession,
                              added: addedDeviceList,
                              removed: removedDeviceList
                            });

Value

An XRSession indicating the WebXR session to which the input source list change applies.

Specifications

No specification found

No specification data found for api.XRInputSourcesChangeEventInit.session.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.XRInputSourcesChangeEventInit.session.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.