MDN Web Docs

Syntax

js

new XRSessionEvent(type, options)

Parameters

type

A string with the name of the event. It is case-sensitive and browsers set it to end or visibilitychange.

options

An object that, in addition of the properties defined in Event(), can have the following properties:

session

The XRSession to which the event is to be delivered.

Return value

A new XRSessionEvent object representing an object of the specified type and configured as described by the options parameter.

Examples

See XRSessionEvent for example code.

Specifications

Specification
WebXR Device API
# dom-xrsessionevent-xrsessionevent

Browser compatibility

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗