Dart Documentationchrome.extensionExtensionGetViewsParams

ExtensionGetViewsParams class

class ExtensionGetViewsParams extends ChromeObject {
 ExtensionGetViewsParams({String type, int windowId}) {
   if (type != null) this.type = type;
   if (windowId != null) this.windowId = windowId;
 }
 ExtensionGetViewsParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The type of view to get. If omitted, returns all views (including
  * background pages and tabs). Valid values: 'tab', 'infobar', 'notification',
  * 'popup'.
  * enum of `tab`, `infobar`, `notification`, `popup`
  */
 String get type => jsProxy['type'];
 set type(String value) => jsProxy['type'] = value;

 /**
  * The window to restrict the search to. If omitted, returns all views.
  */
 int get windowId => jsProxy['windowId'];
 set windowId(int value) => jsProxy['windowId'] = value;
}

Extends

ChromeObject > ExtensionGetViewsParams

Constructors

new ExtensionGetViewsParams({String type, int windowId}) #

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

docs inherited from ChromeObject
ExtensionGetViewsParams({String type, int windowId}) {
 if (type != null) this.type = type;
 if (windowId != null) this.windowId = windowId;
}

new ExtensionGetViewsParams.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String type #

The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'infobar', 'notification', 'popup'. enum of tab, infobar, notification, popup

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

int windowId #

The window to restrict the search to. If omitted, returns all views.

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