setCookieControls

Sets Controls for third-party cookie access Page reload is required before the new cookie bahavior will be observed

Official doc

Note: this function uses an input class, and constructing this class manually may lead to incompatibilities if the class's constructor arguments change in the future. For maximum compatibility, it is advised to use the overload of this function that directly takes the mandatory parameters as arguments, and the optional ones from a configuration lambda.


suspend fun setCookieControls(enableThirdPartyCookieRestriction: Boolean, disableThirdPartyCookieMetadata: Boolean, disableThirdPartyCookieHeuristics: Boolean): SetCookieControlsResponse

Sets Controls for third-party cookie access Page reload is required before the new cookie bahavior will be observed

Official doc

Parameters

enableThirdPartyCookieRestriction

Whether 3pc restriction is enabled.

disableThirdPartyCookieMetadata

Whether 3pc grace period exception should be enabled; false by default.

disableThirdPartyCookieHeuristics

Whether 3pc heuristics exceptions should be enabled; false by default.