XRSession.onend
The onend
attribute of the XRSession
object is the event handler for the end
event, which is dispatched after the XR session ends and all related hardware-specific routines are completed.
Syntax
XRSession.onend = function(event) { ... };
Example
XRSession.onend = function(event) { console.log("The XR session has ended") }
Specifications
Specification |
---|
WebXR Device API # dom-xrsession-onend |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
onend |
79 |
79 |
No |
No |
No |
No |
No |
79 |
No |
No |
No |
11.2 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onend