ChromePrivacy class
class ChromePrivacy extends ChromeApi { static final JsObject _privacy = chrome['privacy']; ChromePrivacy._(); bool get available => _privacy != null; /** * Settings that influence Chrome's handling of network connections in * general. */ NetworkPrivacy get network => _createNetworkPrivacy(_privacy['network']); /** * Settings that enable or disable features that require third-party network * services provided by Google and your default search provider. */ ServicesPrivacy get services => _createServicesPrivacy(_privacy['services']); /** * Settings that determine what information Chrome makes available to * websites. */ WebsitesPrivacy get websites => _createWebsitesPrivacy(_privacy['websites']); void _throwNotAvailable() { throw new UnsupportedError("'chrome.privacy' is not available"); } }
Extends
ChromeApi > ChromePrivacy
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 => _privacy != null;
final NetworkPrivacy network #
Settings that influence Chrome's handling of network connections in general.
NetworkPrivacy get network => _createNetworkPrivacy(_privacy['network']);
final ServicesPrivacy services #
Settings that enable or disable features that require third-party network services provided by Google and your default search provider.
ServicesPrivacy get services => _createServicesPrivacy(_privacy['services']);
final WebsitesPrivacy websites #
Settings that determine what information Chrome makes available to websites.
WebsitesPrivacy get websites => _createWebsitesPrivacy(_privacy['websites']);