PrivacyWebsites constructor
PrivacyWebsites({
- required ChromeSetting thirdPartyCookiesAllowed,
- required ChromeSetting topicsEnabled,
- required ChromeSetting fledgeEnabled,
- required ChromeSetting adMeasurementEnabled,
- required ChromeSetting hyperlinkAuditingEnabled,
- required ChromeSetting referrersEnabled,
- required ChromeSetting doNotTrackEnabled,
- ChromeSetting? protectedContentEnabled,
Implementation
PrivacyWebsites({
/// If disabled, Chrome blocks third-party sites from setting cookies. The
/// value of this preference is of type boolean, and the default value is
/// `true`.
required ChromeSetting thirdPartyCookiesAllowed,
/// If disabled, the [Topics
/// API](https://developer.chrome.com/en/docs/privacy-sandbox/topics/) is
/// deactivated. The value of this preference is of type boolean, and the
/// default value is `true`. Extensions may only disable this API by setting
/// the value to `false`. If you try setting this API to `true`, it will
/// throw an error.
required ChromeSetting topicsEnabled,
/// If disabled, the [Fledge
/// API](https://developer.chrome.com/docs/privacy-sandbox/fledge/) is
/// deactivated. The value of this preference is of type boolean, and the
/// default value is `true`. Extensions may only disable this API by setting
/// the value to `false`. If you try setting this API to `true`, it will
/// throw an error.
required ChromeSetting fledgeEnabled,
/// If disabled, the [Attribution Reporting
/// API](https://developer.chrome.com/en/docs/privacy-sandbox/attribution-reporting/)
/// and [Private Aggregation
/// API](https://developer.chrome.com/docs/privacy-sandbox/private-aggregation/)
/// are deactivated. The value of this preference is of type boolean, and
/// the default value is `true`. Extensions may only disable these APIs by
/// setting the value to `false`. If you try setting these APIs to `true`,
/// it will throw an error.
required ChromeSetting adMeasurementEnabled,
/// If enabled, Chrome sends auditing pings when requested by a website (`<a
/// ping>`). The value of this preference is of type boolean, and the
/// default value is `true`.
required ChromeSetting hyperlinkAuditingEnabled,
/// If enabled, Chrome sends `referer` headers with your requests. Yes, the
/// name of this preference doesn't match the misspelled header. No, we're
/// not going to change it. The value of this preference is of type boolean,
/// and the default value is `true`.
required ChromeSetting referrersEnabled,
/// If enabled, Chrome sends 'Do Not Track' (`DNT: 1`) header with your
/// requests. The value of this preference is of type boolean, and the
/// default value is `false`.
required ChromeSetting doNotTrackEnabled,
/// *Available on Windows and ChromeOS only*: If enabled, Chrome provides a
/// unique ID to plugins in order to run protected content. The value of
/// this preference is of type boolean, and the default value is `true`.
ChromeSetting? protectedContentEnabled,
/// If disabled, [Related Website
/// Sets](https://developer.chrome.com/docs/privacy-sandbox/related-website-sets/)
/// is deactivated. The value of this preference is of type boolean, and the
/// default value is `true`. Extensions may only disable this API by setting
/// the value to `false`. If you try setting this API to `true`, it will
/// throw an error.
required ChromeSetting relatedWebsiteSetsEnabled,
}) : _wrapped = $js.PrivacyWebsites(
thirdPartyCookiesAllowed: thirdPartyCookiesAllowed.toJS,
topicsEnabled: topicsEnabled.toJS,
fledgeEnabled: fledgeEnabled.toJS,
adMeasurementEnabled: adMeasurementEnabled.toJS,
hyperlinkAuditingEnabled: hyperlinkAuditingEnabled.toJS,
referrersEnabled: referrersEnabled.toJS,
doNotTrackEnabled: doNotTrackEnabled.toJS,
protectedContentEnabled: protectedContentEnabled?.toJS,
relatedWebsiteSetsEnabled: relatedWebsiteSetsEnabled.toJS,
);