TargetInfo class
Debug target information
class TargetInfo extends ChromeObject {
TargetInfo({String type, String id, int tabId, String extensionId, bool attached, String title, String url, String faviconUrl}) {
if (type != null) this.type = type;
if (id != null) this.id = id;
if (tabId != null) this.tabId = tabId;
if (extensionId != null) this.extensionId = extensionId;
if (attached != null) this.attached = attached;
if (title != null) this.title = title;
if (url != null) this.url = url;
if (faviconUrl != null) this.faviconUrl = faviconUrl;
}
TargetInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* Target type.
* enum of `page`, `background_page`, `worker`, `other`
*/
String get type => jsProxy['type'];
set type(String value) => jsProxy['type'] = value;
/**
* Target id.
*/
String get id => jsProxy['id'];
set id(String value) => jsProxy['id'] = value;
/**
* The tab id, defined if type == 'page'.
*/
int get tabId => jsProxy['tabId'];
set tabId(int value) => jsProxy['tabId'] = value;
/**
* The extension id, defined if type = 'background_page'.
*/
String get extensionId => jsProxy['extensionId'];
set extensionId(String value) => jsProxy['extensionId'] = value;
/**
* True if debugger is already attached.
*/
bool get attached => jsProxy['attached'];
set attached(bool value) => jsProxy['attached'] = value;
/**
* Target page title.
*/
String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;
/**
* Target URL.
*/
String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;
/**
* Target favicon URL.
*/
String get faviconUrl => jsProxy['faviconUrl'];
set faviconUrl(String value) => jsProxy['faviconUrl'] = value;
}
Extends
ChromeObject > TargetInfo
Constructors
new TargetInfo({String type, String id, int tabId, String extensionId, bool attached, String title, String url, String faviconUrl}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
TargetInfo({String type, String id, int tabId, String extensionId, bool attached, String title, String url, String faviconUrl}) {
if (type != null) this.type = type;
if (id != null) this.id = id;
if (tabId != null) this.tabId = tabId;
if (extensionId != null) this.extensionId = extensionId;
if (attached != null) this.attached = attached;
if (title != null) this.title = title;
if (url != null) this.url = url;
if (faviconUrl != null) this.faviconUrl = faviconUrl;
}
new TargetInfo.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
TargetInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
bool attached #
True if debugger is already attached.
bool get attached => jsProxy['attached'];
set attached(bool value) => jsProxy['attached'] = value;
String extensionId #
The extension id, defined if type = 'background_page'.
String get extensionId => jsProxy['extensionId'];
set extensionId(String value) => jsProxy['extensionId'] = value;
String faviconUrl #
Target favicon URL.
String get faviconUrl => jsProxy['faviconUrl'];
set faviconUrl(String value) => jsProxy['faviconUrl'] = value;
String id #
Target id.
String get id => jsProxy['id'];
set id(String value) => jsProxy['id'] = value;
int tabId #
The tab id, defined if type == 'page'.
int get tabId => jsProxy['tabId'];
set tabId(int value) => jsProxy['tabId'] = value;
String title #
Target page title.
String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;
String type #
Target type.
enum of page, background_page, worker, other
String get type => jsProxy['type'];
set type(String value) => jsProxy['type'] = value;
String url #
Target URL.
String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();