PrivacyServices constructor

PrivacyServices({
  1. required ChromeSetting alternateErrorPagesEnabled,
  2. required ChromeSetting autofillEnabled,
  3. required ChromeSetting autofillAddressEnabled,
  4. required ChromeSetting autofillCreditCardEnabled,
  5. required ChromeSetting passwordSavingEnabled,
  6. required ChromeSetting safeBrowsingEnabled,
  7. required ChromeSetting safeBrowsingExtendedReportingEnabled,
  8. required ChromeSetting searchSuggestEnabled,
  9. required ChromeSetting spellingServiceEnabled,
  10. required ChromeSetting translationServiceEnabled,
})

Implementation

PrivacyServices({
  /// If enabled, Chrome uses a web service to help resolve navigation errors.
  /// This preference's value is a boolean, defaulting to `true`.
  required ChromeSetting alternateErrorPagesEnabled,

  /// If enabled, Chrome offers to automatically fill in forms. This
  /// preference's value is a boolean, defaulting to `true`.
  required ChromeSetting autofillEnabled,

  /// If enabled, Chrome offers to automatically fill in addresses and other
  /// form data. This preference's value is a boolean, defaulting to `true`.
  required ChromeSetting autofillAddressEnabled,

  /// If enabled, Chrome offers to automatically fill in credit card forms.
  /// This preference's value is a boolean, defaulting to `true`.
  required ChromeSetting autofillCreditCardEnabled,

  /// If enabled, the password manager will ask if you want to save passwords.
  /// This preference's value is a boolean, defaulting to `true`.
  required ChromeSetting passwordSavingEnabled,

  /// If enabled, Chrome does its best to protect you from phishing and
  /// malware. This preference's value is a boolean, defaulting to `true`.
  required ChromeSetting safeBrowsingEnabled,

  /// If enabled, Chrome will send additional information to Google when
  /// SafeBrowsing blocks a page, such as the content of the blocked page.
  /// This preference's value is a boolean, defaulting to `false`.
  required ChromeSetting safeBrowsingExtendedReportingEnabled,

  /// If enabled, Chrome sends the text you type into the Omnibox to your
  /// default search engine, which provides predictions of websites and
  /// searches that are likely completions of what you've typed so far. This
  /// preference's value is a boolean, defaulting to `true`.
  required ChromeSetting searchSuggestEnabled,

  /// If enabled, Chrome uses a web service to help correct spelling errors.
  /// This preference's value is a boolean, defaulting to `false`.
  required ChromeSetting spellingServiceEnabled,

  /// If enabled, Chrome offers to translate pages that aren't in a language
  /// you read. This preference's value is a boolean, defaulting to `true`.
  required ChromeSetting translationServiceEnabled,
}) : _wrapped = $js.PrivacyServices(
        alternateErrorPagesEnabled: alternateErrorPagesEnabled.toJS,
        autofillEnabled: autofillEnabled.toJS,
        autofillAddressEnabled: autofillAddressEnabled.toJS,
        autofillCreditCardEnabled: autofillCreditCardEnabled.toJS,
        passwordSavingEnabled: passwordSavingEnabled.toJS,
        safeBrowsingEnabled: safeBrowsingEnabled.toJS,
        safeBrowsingExtendedReportingEnabled:
            safeBrowsingExtendedReportingEnabled.toJS,
        searchSuggestEnabled: searchSuggestEnabled.toJS,
        spellingServiceEnabled: spellingServiceEnabled.toJS,
        translationServiceEnabled: translationServiceEnabled.toJS,
      );