VisitItem class
An object encapsulating one visit to a URL.
class VisitItem extends ChromeObject { VisitItem({String id, String visitId, var visitTime, String referringVisitId, String transition}) { if (id != null) this.id = id; if (visitId != null) this.visitId = visitId; if (visitTime != null) this.visitTime = visitTime; if (referringVisitId != null) this.referringVisitId = referringVisitId; if (transition != null) this.transition = transition; } VisitItem.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * The unique identifier for the item. */ String get id => jsProxy['id']; set id(String value) => jsProxy['id'] = value; /** * The unique identifier for this visit. */ String get visitId => jsProxy['visitId']; set visitId(String value) => jsProxy['visitId'] = value; /** * When this visit occurred, represented in milliseconds since the epoch. */ dynamic get visitTime => jsProxy['visitTime']; set visitTime(var value) => jsProxy['visitTime'] = jsify(value); /** * The visit ID of the referrer. */ String get referringVisitId => jsProxy['referringVisitId']; set referringVisitId(String value) => jsProxy['referringVisitId'] = value; /** * The [transition type](#transition_types) for this visit from its referrer. * enum of `link`, `typed`, `auto_bookmark`, `auto_subframe`, * `manual_subframe`, `generated`, `auto_toplevel`, `form_submit`, `reload`, * `keyword`, `keyword_generated` */ String get transition => jsProxy['transition']; set transition(String value) => jsProxy['transition'] = value; }
Extends
ChromeObject > VisitItem
Constructors
new VisitItem({String id, String visitId, visitTime, String referringVisitId, String transition}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
VisitItem({String id, String visitId, var visitTime, String referringVisitId, String transition}) { if (id != null) this.id = id; if (visitId != null) this.visitId = visitId; if (visitTime != null) this.visitTime = visitTime; if (referringVisitId != null) this.referringVisitId = referringVisitId; if (transition != null) this.transition = transition; }
new VisitItem.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
VisitItem.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String id #
The unique identifier for the item.
String get id => jsProxy['id'];
set id(String value) => jsProxy['id'] = value;
String referringVisitId #
The visit ID of the referrer.
String get referringVisitId => jsProxy['referringVisitId'];
set referringVisitId(String value) => jsProxy['referringVisitId'] = value;
String transition #
The transition type for this visit from its referrer.
enum of link
, typed
, auto_bookmark
, auto_subframe
,
manual_subframe
, generated
, auto_toplevel
, form_submit
, reload
,
keyword
, keyword_generated
String get transition => jsProxy['transition'];
set transition(String value) => jsProxy['transition'] = value;
String visitId #
The unique identifier for this visit.
String get visitId => jsProxy['visitId'];
set visitId(String value) => jsProxy['visitId'] = value;
var visitTime #
When this visit occurred, represented in milliseconds since the epoch.
dynamic get visitTime => jsProxy['visitTime'];
set visitTime(var value) => jsProxy['visitTime'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();