Add a listener for when an XR session ends This event is triggered when the XR session is ended, either by the user or by the application before all other XR end events
The function to call when the XR session ends
A function to remove the listener
onXRSessionEnd((evt) => { console.log("XR session ended", evt);}); Copy
onXRSessionEnd((evt) => { console.log("XR session ended", evt);});
Add a listener for when an XR session ends This event is triggered when the XR session is ended, either by the user or by the application before all other XR end events