ChromeDeclarativeContent class
class ChromeDeclarativeContent extends ChromeApi {
static final JsObject _declarativeContent = chrome['declarativeContent'];
ChromeDeclarativeContent._();
bool get available => _declarativeContent != null;
Stream get onPageChanged => _onPageChanged.stream;
final ChromeStreamController _onPageChanged =
new ChromeStreamController.noArgs(_declarativeContent, 'onPageChanged');
void _throwNotAvailable() {
throw new UnsupportedError("'chrome.declarativeContent' is not available");
}
}
Extends
ChromeApi > ChromeDeclarativeContent
Properties
final bool available #
Returns true if the API is available. The common causes of an API not being avilable are:
- a permission is missing in the application's manifest.json file
- the API is defined on a newer version of Chrome then the current runtime
docs inherited from ChromeApi
bool get available => _declarativeContent != null;
final Stream onPageChanged #
Stream get onPageChanged => _onPageChanged.stream;