GlobalPrivacyControlOptions Class
The preference of the user expressed by Global Privacy Control (https://w3c.github.io/gpc/, see BrowsingContextOptions.GlobalPrivacyControl): when it is enabled, navigator.globalPrivacyControl is true and the requests have the Sec-GPC: 1 header.
public sealed class GlobalPrivacyControlOptionsConstructors
| Name | Description |
|---|---|
| GlobalPrivacyControlOptions() |
GlobalPrivacyControlOptions()
public GlobalPrivacyControlOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Enabled | Gets or sets whether the user does not consent to the sale or sharing of their data. The default is false. |
| IsEnabled | Gets or sets a callback that returns the preference of the user, read at each request and each read of navigator.globalPrivacyControl (e.g. a setting that the user can change). When set, it replaces GlobalPrivacyControlOptions.Enabled. The default is null. |
Enabled
NetworkInformation.csIsEnabled
NetworkInformation.csGets or sets a callback that returns the preference of the user, read at each request and each read of navigator.globalPrivacyControl (e.g. a setting that the user can change). When set, it replaces GlobalPrivacyControlOptions.Enabled. The default is null.
public Func<CallbackContext, bool>? IsEnabled { get; init; }