ContentSettingsGetParams class
class ContentSettingsGetParams extends ChromeObject { ContentSettingsGetParams({String primaryUrl, String secondaryUrl, ResourceIdentifier resourceIdentifier, bool incognito}) { if (primaryUrl != null) this.primaryUrl = primaryUrl; if (secondaryUrl != null) this.secondaryUrl = secondaryUrl; if (resourceIdentifier != null) this.resourceIdentifier = resourceIdentifier; if (incognito != null) this.incognito = incognito; } ContentSettingsGetParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * The primary URL for which the content setting should be retrieved. Note * that the meaning of a primary URL depends on the content type. */ String get primaryUrl => jsProxy['primaryUrl']; set primaryUrl(String value) => jsProxy['primaryUrl'] = value; /** * The secondary URL for which the content setting should be retrieved. * Defaults to the primary URL. Note that the meaning of a secondary URL * depends on the content type, and not all content types use secondary URLs. */ String get secondaryUrl => jsProxy['secondaryUrl']; set secondaryUrl(String value) => jsProxy['secondaryUrl'] = value; /** * A more specific identifier of the type of content for which the settings * should be retrieved. */ ResourceIdentifier get resourceIdentifier => _createResourceIdentifier(jsProxy['resourceIdentifier']); set resourceIdentifier(ResourceIdentifier value) => jsProxy['resourceIdentifier'] = jsify(value); /** * Whether to check the content settings for an incognito session. (default * false) */ bool get incognito => jsProxy['incognito']; set incognito(bool value) => jsProxy['incognito'] = value; }
Extends
ChromeObject > ContentSettingsGetParams
Constructors
new ContentSettingsGetParams({String primaryUrl, String secondaryUrl, ResourceIdentifier resourceIdentifier, bool incognito}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
ContentSettingsGetParams({String primaryUrl, String secondaryUrl, ResourceIdentifier resourceIdentifier, bool incognito}) { if (primaryUrl != null) this.primaryUrl = primaryUrl; if (secondaryUrl != null) this.secondaryUrl = secondaryUrl; if (resourceIdentifier != null) this.resourceIdentifier = resourceIdentifier; if (incognito != null) this.incognito = incognito; }
new ContentSettingsGetParams.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
ContentSettingsGetParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
bool incognito #
Whether to check the content settings for an incognito session. (default false)
bool get incognito => jsProxy['incognito'];
set incognito(bool value) => jsProxy['incognito'] = value;
String primaryUrl #
The primary URL for which the content setting should be retrieved. Note that the meaning of a primary URL depends on the content type.
String get primaryUrl => jsProxy['primaryUrl'];
set primaryUrl(String value) => jsProxy['primaryUrl'] = value;
ResourceIdentifier resourceIdentifier #
A more specific identifier of the type of content for which the settings should be retrieved.
ResourceIdentifier get resourceIdentifier => _createResourceIdentifier(jsProxy['resourceIdentifier']);
set resourceIdentifier(ResourceIdentifier value) => jsProxy['resourceIdentifier'] = jsify(value);
String secondaryUrl #
The secondary URL for which the content setting should be retrieved. Defaults to the primary URL. Note that the meaning of a secondary URL depends on the content type, and not all content types use secondary URLs.
String get secondaryUrl => jsProxy['secondaryUrl'];
set secondaryUrl(String value) => jsProxy['secondaryUrl'] = value;
Methods
String toString() #
Returns a string representation of this object.
String toString() => jsProxy.toString();