ElectronBrowserWindow.setContentProtection method
ElectronBrowserWindow › setContentProtection
Unofficial
Prevents the window contents from being captured by other apps (macOS and Windows).Signature:
setContentProtection(enable: boolean): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| enable | boolean | Whether to enable content protection. |
Returns: void