Dart Documentationchrome.cookiesCookiesSetParams

CookiesSetParams class

class CookiesSetParams extends ChromeObject {
 CookiesSetParams({String url, String name, String value, String domain, String path, bool secure, bool httpOnly, var expirationDate, String storeId}) {
   if (url != null) this.url = url;
   if (name != null) this.name = name;
   if (value != null) this.value = value;
   if (domain != null) this.domain = domain;
   if (path != null) this.path = path;
   if (secure != null) this.secure = secure;
   if (httpOnly != null) this.httpOnly = httpOnly;
   if (expirationDate != null) this.expirationDate = expirationDate;
   if (storeId != null) this.storeId = storeId;
 }
 CookiesSetParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The request-URI to associate with the setting of the cookie. This value can
  * affect the default domain and path values of the created cookie. If host
  * permissions for this URL are not specified in the manifest file, the API
  * call will fail.
  */
 String get url => jsProxy['url'];
 set url(String value) => jsProxy['url'] = value;

 /**
  * The name of the cookie. Empty by default if omitted.
  */
 String get name => jsProxy['name'];
 set name(String value) => jsProxy['name'] = value;

 /**
  * The value of the cookie. Empty by default if omitted.
  */
 String get value => jsProxy['value'];
 set value(String value) => jsProxy['value'] = value;

 /**
  * The domain of the cookie. If omitted, the cookie becomes a host-only
  * cookie.
  */
 String get domain => jsProxy['domain'];
 set domain(String value) => jsProxy['domain'] = value;

 /**
  * The path of the cookie. Defaults to the path portion of the url parameter.
  */
 String get path => jsProxy['path'];
 set path(String value) => jsProxy['path'] = value;

 /**
  * Whether the cookie should be marked as Secure. Defaults to false.
  */
 bool get secure => jsProxy['secure'];
 set secure(bool value) => jsProxy['secure'] = value;

 /**
  * Whether the cookie should be marked as HttpOnly. Defaults to false.
  */
 bool get httpOnly => jsProxy['httpOnly'];
 set httpOnly(bool value) => jsProxy['httpOnly'] = value;

 /**
  * The expiration date of the cookie as the number of seconds since the UNIX
  * epoch. If omitted, the cookie becomes a session cookie.
  */
 dynamic get expirationDate => jsProxy['expirationDate'];
 set expirationDate(var value) => jsProxy['expirationDate'] = jsify(value);

 /**
  * The ID of the cookie store in which to set the cookie. By default, the
  * cookie is set in the current execution context's cookie store.
  */
 String get storeId => jsProxy['storeId'];
 set storeId(String value) => jsProxy['storeId'] = value;
}

Extends

ChromeObject > CookiesSetParams

Constructors

new CookiesSetParams({String url, String name, String value, String domain, String path, bool secure, bool httpOnly, expirationDate, String storeId}) #

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

docs inherited from ChromeObject
CookiesSetParams({String url, String name, String value, String domain, String path, bool secure, bool httpOnly, var expirationDate, String storeId}) {
 if (url != null) this.url = url;
 if (name != null) this.name = name;
 if (value != null) this.value = value;
 if (domain != null) this.domain = domain;
 if (path != null) this.path = path;
 if (secure != null) this.secure = secure;
 if (httpOnly != null) this.httpOnly = httpOnly;
 if (expirationDate != null) this.expirationDate = expirationDate;
 if (storeId != null) this.storeId = storeId;
}

new CookiesSetParams.fromProxy(JsObject jsProxy) #

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

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

Properties

String domain #

The domain of the cookie. If omitted, the cookie becomes a host-only cookie.

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

var expirationDate #

The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie.

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

bool httpOnly #

Whether the cookie should be marked as HttpOnly. Defaults to false.

bool get httpOnly => jsProxy['httpOnly'];
set httpOnly(bool value) => jsProxy['httpOnly'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String name #

The name of the cookie. Empty by default if omitted.

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

String path #

The path of the cookie. Defaults to the path portion of the url parameter.

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

bool secure #

Whether the cookie should be marked as Secure. Defaults to false.

bool get secure => jsProxy['secure'];
set secure(bool value) => jsProxy['secure'] = value;

String storeId #

The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.

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

String url #

The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. If host permissions for this URL are not specified in the manifest file, the API call will fail.

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

String value #

The value of the cookie. Empty by default if omitted.

String get value => jsProxy['value'];
set value(String value) => jsProxy['value'] = 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();