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

Specification Status Comment
WebXR Device API
The definition of 'XRInputSourcesChangeEventInit.session' in that specification.
Working Draft Initial definition.