Dart Documentationchrome.contentSettingsContentSettingsSetParams

ContentSettingsSetParams class

class ContentSettingsSetParams extends ChromeObject {
 ContentSettingsSetParams({String primaryPattern, String secondaryPattern, ResourceIdentifier resourceIdentifier, var setting, String scope}) {
   if (primaryPattern != null) this.primaryPattern = primaryPattern;
   if (secondaryPattern != null) this.secondaryPattern = secondaryPattern;
   if (resourceIdentifier != null) this.resourceIdentifier = resourceIdentifier;
   if (setting != null) this.setting = setting;
   if (scope != null) this.scope = scope;
 }
 ContentSettingsSetParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The pattern for the primary URL. For details on the format of a pattern,
  * see [Content Setting Patterns](contentSettings.html#patterns).
  */
 String get primaryPattern => jsProxy['primaryPattern'];
 set primaryPattern(String value) => jsProxy['primaryPattern'] = value;

 /**
  * The pattern for the secondary URL. Defaults to matching all URLs. For
  * details on the format of a pattern, see [Content Setting
  * Patterns](contentSettings.html#patterns).
  */
 String get secondaryPattern => jsProxy['secondaryPattern'];
 set secondaryPattern(String value) => jsProxy['secondaryPattern'] = value;

 /**
  * The resource identifier for the content type.
  */
 ResourceIdentifier get resourceIdentifier => _createResourceIdentifier(jsProxy['resourceIdentifier']);
 set resourceIdentifier(ResourceIdentifier value) => jsProxy['resourceIdentifier'] = jsify(value);

 /**
  * The setting applied by this rule. See the description of the individual
  * ContentSetting objects for the possible values.
  */
 dynamic get setting => jsProxy['setting'];
 set setting(var value) => jsProxy['setting'] = jsify(value);

 /**
  * Where to set the setting (default: regular). One of<br>[regular]: setting
  * for regular profile (which is inherited by the incognito profile if not
  * overridden elsewhere),<br>[incognito_session_only]: setting for incognito
  * profile that can only be set during an incognito session and is deleted
  * when the incognito session ends (overrides regular settings).
  * enum of `regular`, `incognito_session_only`
  */
 String get scope => jsProxy['scope'];
 set scope(String value) => jsProxy['scope'] = value;
}

Extends

ChromeObject > ContentSettingsSetParams

Constructors

new ContentSettingsSetParams({String primaryPattern, String secondaryPattern, ResourceIdentifier resourceIdentifier, setting, String scope}) #

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

docs inherited from ChromeObject
ContentSettingsSetParams({String primaryPattern, String secondaryPattern, ResourceIdentifier resourceIdentifier, var setting, String scope}) {
 if (primaryPattern != null) this.primaryPattern = primaryPattern;
 if (secondaryPattern != null) this.secondaryPattern = secondaryPattern;
 if (resourceIdentifier != null) this.resourceIdentifier = resourceIdentifier;
 if (setting != null) this.setting = setting;
 if (scope != null) this.scope = scope;
}

new ContentSettingsSetParams.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String primaryPattern #

The pattern for the primary URL. For details on the format of a pattern, see Content Setting Patterns.

String get primaryPattern => jsProxy['primaryPattern'];
set primaryPattern(String value) => jsProxy['primaryPattern'] = value;

ResourceIdentifier resourceIdentifier #

The resource identifier for the content type.

ResourceIdentifier get resourceIdentifier => _createResourceIdentifier(jsProxy['resourceIdentifier']);
set resourceIdentifier(ResourceIdentifier value) => jsProxy['resourceIdentifier'] = jsify(value);

String scope #

Where to set the setting (default: regular). One of<br>regular: setting for regular profile (which is inherited by the incognito profile if not overridden elsewhere),<br>[incognito_session_only]: setting for incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular settings). enum of regular, incognito_session_only

String get scope => jsProxy['scope'];
set scope(String value) => jsProxy['scope'] = value;

String secondaryPattern #

The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see Content Setting Patterns.

String get secondaryPattern => jsProxy['secondaryPattern'];
set secondaryPattern(String value) => jsProxy['secondaryPattern'] = value;

var setting #

The setting applied by this rule. See the description of the individual ContentSetting objects for the possible values.

dynamic get setting => jsProxy['setting'];
set setting(var value) => jsProxy['setting'] = jsify(value);

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();