setGlobalPrivacyControl method

Future<bool> setGlobalPrivacyControl(
  1. bool gpc
)

Sets and then gets the current globally-applied privacy control status See https://www.w3.org/TR/gpc/#set-global-privacy-control

Implementation

Future<bool> setGlobalPrivacyControl(bool gpc) async {
  var result = await _client.send('Browser.setGlobalPrivacyControl', {
    'gpc': gpc,
  });
  return result['gpc'] as bool;
}