Toggle OS-level FLAG_SECURE to block screen captures and recording.
Enable or disable native screenshot and screen recording protection on demand. Uses Android FLAG_SECURE and iOS screen capture prevention APIs to protect sensitive content.
import nativine from 'nativine';
nativine.screenshot.setProtection(true);
import nativine from 'nativine';
nativine.screenshot.setProtection(false);
Use this to protect specific pages (e.g. payment screens, personal data) while allowing screenshots on other pages.