xr:screenshotready
Description
This event is emitted in response to the xr:screenshotrequest
event being being completed successfully. The JPEG compressed image of the PlayCanvas canvas will be provided.
Example
this.app.on('xr:screenshotready', (event) => {
// screenshotPreview is an <img> HTML element
const image = document.getElementById('screenshotPreview')
image.src = 'data:image/jpeg;base64,' + event.detail
}, this)