Dart Documentationchrome.historyHistorySearchParams

HistorySearchParams class

class HistorySearchParams extends ChromeObject {
 HistorySearchParams({String text, var startTime, var endTime, int maxResults}) {
   if (text != null) this.text = text;
   if (startTime != null) this.startTime = startTime;
   if (endTime != null) this.endTime = endTime;
   if (maxResults != null) this.maxResults = maxResults;
 }
 HistorySearchParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * A free-text query to the history service.  Leave empty to retrieve all
  * pages.
  */
 String get text => jsProxy['text'];
 set text(String value) => jsProxy['text'] = value;

 /**
  * Limit results to those visited after this date, represented in milliseconds
  * since the epoch.
  */
 dynamic get startTime => jsProxy['startTime'];
 set startTime(var value) => jsProxy['startTime'] = jsify(value);

 /**
  * Limit results to those visited before this date, represented in
  * milliseconds since the epoch.
  */
 dynamic get endTime => jsProxy['endTime'];
 set endTime(var value) => jsProxy['endTime'] = jsify(value);

 /**
  * The maximum number of results to retrieve.  Defaults to 100.
  */
 int get maxResults => jsProxy['maxResults'];
 set maxResults(int value) => jsProxy['maxResults'] = value;
}

Extends

ChromeObject > HistorySearchParams

Constructors

new HistorySearchParams({String text, startTime, endTime, int maxResults}) #

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

docs inherited from ChromeObject
HistorySearchParams({String text, var startTime, var endTime, int maxResults}) {
 if (text != null) this.text = text;
 if (startTime != null) this.startTime = startTime;
 if (endTime != null) this.endTime = endTime;
 if (maxResults != null) this.maxResults = maxResults;
}

new HistorySearchParams.fromProxy(JsObject jsProxy) #

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

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

Properties

var endTime #

Limit results to those visited before this date, represented in milliseconds since the epoch.

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

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int maxResults #

The maximum number of results to retrieve. Defaults to 100.

int get maxResults => jsProxy['maxResults'];
set maxResults(int value) => jsProxy['maxResults'] = value;

var startTime #

Limit results to those visited after this date, represented in milliseconds since the epoch.

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

String text #

A free-text query to the history service. Leave empty to retrieve all pages.

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