Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle report guide update #340

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions guides/toggle-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,37 @@ This is called immediately to retrieve the data needed to render the list.

[Sample JSON 📝](../schema/__fixtures__/toggle-report-screen.json)

- Android: {@link "Android integration".PrivacyDashboardJavascriptInterface.getToggleReportOptions}
- WebKit: {@link "macOS integration".privacyDashboardGetToggleReportOptions}
- Other platforms will be added
- Browser Extensions: {@link "Browser/Extensions integration".getToggleReportOptions}

See also: [Data disclosure item ids and their meanings](#appendix-data-disclosure-item-ids-and-their-meanings)

## Step 4: Implement new handlers

The following are all sent in response to user interactions

### 👆Sending/rejecting the report
### 👆Sending the report

- Android: {@link "Android integration".PrivacyDashboardJavascriptInterface.sendToggleReport}
- WebKit: {@link "macOS integration".privacyDashboardSendToggleReport}
- WebKit: {@link "macOS integration".privacyDashboardRejectToggleReport}
- Browser Extensions: {@link "Browser/Extensions integration".sendToggleReport}

### 👆Rejecting the report

- Android: {@link "Android integration".PrivacyDashboardJavascriptInterface.rejectToggleReport}
- WebKit: {@link "macOS integration".privacyDashboardSendToggleReport}
- Browser Extensions: {@link "Browser/Extensions integration".rejectToggleReport}

### 👆Tapping the 'see what's sent' list

- Webkit: {@link "macOS integration".privacyDashboardSeeWhatIsSent}
- Android: {@link "Android integration".PrivacyDashboardJavascriptInterface.seeWhatIsSent}
- WebKit: {@link "macOS integration".privacyDashboardSeeWhatIsSent}
- Browser Extensions: {@link "Browser/Extensions integration".seeWhatIsSent}

### 👆Tapping anywhere on the success screen (macos only)

- Webkit: {@link "macOS integration".privacyDashboardClose}
- WebKit: {@link "macOS integration".privacyDashboardClose}

## Appendix: Data disclosure item ids and their meanings

Expand Down
Loading