Dart Documentationchrome.appLaunchData

LaunchData class

Optional data for the launch. Either items, or the pair (url, referrerUrl) can be present for any given launch.

class LaunchData extends ChromeObject {
 LaunchData({String id, List<LaunchItem> items, String url, String referrerUrl, bool isKioskSession}) {
   if (id != null) this.id = id;
   if (items != null) this.items = items;
   if (url != null) this.url = url;
   if (referrerUrl != null) this.referrerUrl = referrerUrl;
   if (isKioskSession != null) this.isKioskSession = isKioskSession;
 }
 LaunchData.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

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

 List<LaunchItem> get items => listify(jsProxy['items'], _createLaunchItem);
 set items(List<LaunchItem> value) => jsProxy['items'] = jsify(value);

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

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

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

Extends

ChromeObject > LaunchData

Constructors

new LaunchData({String id, List<LaunchItem> items, String url, String referrerUrl, bool isKioskSession}) #

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

docs inherited from ChromeObject
LaunchData({String id, List<LaunchItem> items, String url, String referrerUrl, bool isKioskSession}) {
 if (id != null) this.id = id;
 if (items != null) this.items = items;
 if (url != null) this.url = url;
 if (referrerUrl != null) this.referrerUrl = referrerUrl;
 if (isKioskSession != null) this.isKioskSession = isKioskSession;
}

new LaunchData.fromProxy(JsObject jsProxy) #

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

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

Properties

String id #

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

bool isKioskSession #

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

List<LaunchItem> items #

List<LaunchItem> get items => listify(jsProxy['items'], _createLaunchItem);
set items(List<LaunchItem> value) => jsProxy['items'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String referrerUrl #

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

String url #

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