Skip to content

ElectronBrowserWindow.setContentProtection method

ElectronBrowserWindow › setContentProtection

Unofficial

Prevents the window contents from being captured by other apps (macOS and Windows).

Signature:

setContentProtection(enable: boolean): void

Parameters:

Parameter Type Description
enable boolean Whether to enable content protection.

Returns: void