Screen Capture Detection
Detect screenshots and screen recordings in your iOS app and react from your web app.
Set let preventScreenCapture = true in Config.swift to detect screenshots or screen recordings and automatically call the JavaScript function onScreenCaptureAttempt.
<script>
function onScreenCaptureAttempt() {
alert('Screen capture detected');
}
</script>