Dart Documentationchrome.privacyServicesPrivacy

ServicesPrivacy class

class ServicesPrivacy extends ChromeObject {
 ServicesPrivacy();
 ServicesPrivacy.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * If enabled, Chrome uses a web service to help resolve navigation errors.
  * This preference's value is a boolean, defaulting to `true`.
  */
 ChromeSetting get alternateErrorPagesEnabled => _createChromeSetting(jsProxy['alternateErrorPagesEnabled']);

 /**
  * If enabled, Chrome offers to automatically fill in forms. This preference's
  * value is a boolean, defaulting to `true`.
  */
 ChromeSetting get autofillEnabled => _createChromeSetting(jsProxy['autofillEnabled']);

 /**
  * If enabled, Chrome does its best to protect you from phishing and malware.
  * This preference's value is a boolean, defaulting to `true`.
  */
 ChromeSetting get safeBrowsingEnabled => _createChromeSetting(jsProxy['safeBrowsingEnabled']);

 /**
  * 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`.
  */
 ChromeSetting get searchSuggestEnabled => _createChromeSetting(jsProxy['searchSuggestEnabled']);

 /**
  * If enabled, Chrome uses a web service to help correct spelling errors. This
  * preference's value is a boolean, defaulting to `false`.
  */
 ChromeSetting get spellingServiceEnabled => _createChromeSetting(jsProxy['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`.
  */
 ChromeSetting get translationServiceEnabled => _createChromeSetting(jsProxy['translationServiceEnabled']);
}

Extends

ChromeObject > ServicesPrivacy

Constructors

new ServicesPrivacy() #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
ServicesPrivacy();

new ServicesPrivacy.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
ServicesPrivacy.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

final ChromeSetting alternateErrorPagesEnabled #

If enabled, Chrome uses a web service to help resolve navigation errors. This preference's value is a boolean, defaulting to true.

ChromeSetting get alternateErrorPagesEnabled => _createChromeSetting(jsProxy['alternateErrorPagesEnabled']);

final ChromeSetting autofillEnabled #

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

ChromeSetting get autofillEnabled => _createChromeSetting(jsProxy['autofillEnabled']);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

final ChromeSetting safeBrowsingEnabled #

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

ChromeSetting get safeBrowsingEnabled => _createChromeSetting(jsProxy['safeBrowsingEnabled']);

final ChromeSetting searchSuggestEnabled #

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.

ChromeSetting get searchSuggestEnabled => _createChromeSetting(jsProxy['searchSuggestEnabled']);

final ChromeSetting spellingServiceEnabled #

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

ChromeSetting get spellingServiceEnabled => _createChromeSetting(jsProxy['spellingServiceEnabled']);

final ChromeSetting translationServiceEnabled #

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.

ChromeSetting get translationServiceEnabled => _createChromeSetting(jsProxy['translationServiceEnabled']);

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();