itpEnabled property

bool? itpEnabled
getter/setter pair

Sets whether Intelligent Tracking Prevention (ITP) is enabled.

When ITP is enabled, resource load statistics are collected and used to decide whether to allow or block third-party cookies and prevent user tracking. This is similar to Safari's tracking prevention feature.

IMPORTANT NOTE: When ITP is enabled, the cookie accept policy WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY is ignored and WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS is used instead.

This is a session-level setting that should be set during WebView initialization.

The default value is false.

Officially Supported Platforms/Implementations:

Implementation

bool? itpEnabled;