This message will be sent when the toggle is pressed on, or off via:
This message handler is the equivalent of calling the following JavaScript.
window.webkit.messageHandlers.privacyDashboardSetProtection.postMessage({ isProtected: true, eventOrigin: { screen: "primaryScreen" }}) Copy
window.webkit.messageHandlers.privacyDashboardSetProtection.postMessage({ isProtected: true, eventOrigin: { screen: "primaryScreen" }})
This message will be sent when the toggle is pressed on, or off via: