AutoconsentResult

data class AutoconsentResult(val consentManaged: Boolean, val optOutFailed: Boolean, val selfTestFailed: Boolean, val isCosmetic: Boolean?, val consentRule: String?, val consentReloadLoop: Boolean)

Result of an autoconsent action on a page.

Constructors

Link copied to clipboard
constructor(consentManaged: Boolean, optOutFailed: Boolean, selfTestFailed: Boolean, isCosmetic: Boolean?, consentRule: String?, consentReloadLoop: Boolean)

Properties

Link copied to clipboard

true if autoconsent handled a cookie consent popup on this page.

Link copied to clipboard

true if a reload loop was detected (same CMP re-triggering on the same URL without navigation).

Link copied to clipboard

the autoconsent rule identifier that matched (e.g. "cookiebot", "onetrust"), or null if no rule matched.

Link copied to clipboard

true if the popup was hidden via CSS rather than opted out, null if not applicable.

Link copied to clipboard

true if autoconsent attempted to opt out but the opt-out steps failed.

Link copied to clipboard

true if the post-opt-out self-test detected the consent state was not correctly set.