devowl-wp
    Preparing search index...
    • Type Parameters

      • Arguments extends any[] = any[]

      Parameters

      • options:
            | Pick<
                CookieConsentManagerOptions,
                "groups"
                | "supportsCookiesName"
                | "decisionCookieName"
                | "revisionHash",
            > & { getUserDecision: () => false | Decision } & Omit<
                GetServiceSelectionOptions,
                "type",
            >
            | CookieConsentManager<any>
      • handler: {
            args: Arguments;
            gateways: PreDecisionGateway<Arguments>[];
            isInvalidateImplicitUserConsent?: boolean;
            onIsDoNotTrack: (apply: () => Promise<void>) => void;
            onShowCookieBanner: () => void;
        }
        • args: Arguments
        • gateways: PreDecisionGateway<Arguments>[]
        • OptionalisInvalidateImplicitUserConsent?: boolean

          If true, the user consent is invalidated if the user has not made any explicit decision. This could be useful for e.g. the banner-less mode: First visit a website and the banner-less mode does not show a banner, afterward visit another page (e.g. a landing page) and show the cookie banner so the user is forced to give a consent for e.g. Google Analytics.

        • onIsDoNotTrack: (apply: () => Promise<void>) => void

          If do not track is returned by a predecision gateway, you should save the state in your API and call the apply function manually.

        • onShowCookieBanner: () => void

          No predecision is set, so we should show a visual cookie banner.

      Returns Promise<void>