ChromeProxy class
class ChromeProxy extends ChromeApi { static final JsObject _proxy = chrome['proxy']; ChromeProxy._(); bool get available => _proxy != null; /** * Proxy settings to be used. The value of this setting is a ProxyConfig * object. */ ChromeSetting get settings => _createChromeSetting(_proxy['settings']); /** * Notifies about proxy errors. */ Stream<Map> get onProxyError => _onProxyError.stream; final ChromeStreamController<Map> _onProxyError = new ChromeStreamController<Map>.oneArg(_proxy, 'onProxyError', mapify); void _throwNotAvailable() { throw new UnsupportedError("'chrome.proxy' is not available"); } }
Extends
ChromeApi > ChromeProxy
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 => _proxy != null;
final Stream<Map> onProxyError #
Notifies about proxy errors.
Stream<Map> get onProxyError => _onProxyError.stream;
final ChromeSetting settings #
Proxy settings to be used. The value of this setting is a ProxyConfig object.
ChromeSetting get settings => _createChromeSetting(_proxy['settings']);