Skip to content

Prevent Screen Capture

To protect the sensitive information and ensure data privacy, the Mobile SDK provides an option to prevent taking screenshots and screen recording. Depending on the system, the captured content may either be blocked entirely or replaced with a black screen.

To prevent screen capture, use the following parameter:

DocReader.shared.functionality.preventScreenRecording = true
[RGLDocReader shared].functionality.preventScreenRecording = YES;
DocumentReader.Instance().functionality().edit().setPreventScreenRecording(true).apply()
DocumentReader.Instance().functionality().edit().setPreventScreenRecording(true).apply();
DocumentReader.instance.functionality.preventScreenRecording = true;
DocumentReader.instance.functionality.preventScreenRecording = true
DocumentReader.setFunctionality({
    preventScreenRecording: true
}, (str) => { console.log(str) }, (error) => { console.log(error) });
DocumentReader.setFunctionality({
    preventScreenRecording: true
});
DocumentReader.setFunctionality({
    preventScreenRecording: true
}, function (m) { }, function (e) { console.log(e); });
// Android
DocumentReader.Instance().Functionality().Edit().SetPreventScreenRecording(true).Apply();

// iOS
RGLDocReader.Shared.Functionality.PreventScreenRecording = true;

Next Steps