Skip to main content

Visibility Change


manager.createEventListener('visibilityChange', async event => {
console.info('Page visibility toggled!', event.payload)
})

example payload output:

{
"event": "visibilityChange",
"payload": {
"visibilityChange": [{ "state": "hidden", "timestamp": 1678816122984 }]
}
}