Fetch the data needed to display the toggle report screen
Calling this method should close the dashboard and open the given URL in a new tab.
Calling this method should open the settings at the 'target' provided
Supported targets:
cpm
- used from the Cookie Prompt Management screen when user taps 'disable in settings'Reject sending the toggle report
Sent when the user invokes the site breakage form
Sent when the user expands the disclosure
Send the toggle report
Sent when the user chooses to provide general feedback from the breakage form
This is used when the user has reported a broken site from within the dashboard.
Note: We only send the properties seen here: "Generated Schema Definitions".BreakageReportRequest (like category
, description
)
native sides should combine these with any additional data they require.
Add the current domain to the 'allowlist'
window.PrivacyDashboard.toggleAllowlist(JSON.stringify({
"isProtected": true,
"eventOrigin": { "screen": "primaryScreen" }
}))
Remove the current domain from the 'allowlist'
window.PrivacyDashboard.toggleAllowlist(JSON.stringify({
"isProtected": false,
"eventOrigin": { "screen": "primaryScreen" }
}))
This describes the JavaScript Interface,
PrivacyDashboard
, that gets added to thewindow
object by Android.The Privacy Dashboard communicates with Android by calling methods on that global object.
For example, to show the breakage form, we'd call:
Each
method
documented below is intended