Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/cookie-consent-web-client/src/api/consentSync"

Index

Functions

Functions

consentSync

  • consentSync(manager: CookieConsentManager, typeOrId: ServiceTechnicalDefinition["type"] | number, name?: ServiceTechnicalDefinition["name"], host?: ServiceTechnicalDefinition["host"]): { consentGiven: boolean; cookie: Service; cookieOptIn: boolean }
  • Synchronously check if a consent is given. See window.consentApi.consent for more documentation.

    Parameters

    • manager: CookieConsentManager
    • typeOrId: ServiceTechnicalDefinition["type"] | number
    • Optional name: ServiceTechnicalDefinition["name"]
    • Optional host: ServiceTechnicalDefinition["host"]

    Returns { consentGiven: boolean; cookie: Service; cookieOptIn: boolean }

    • consentGiven: boolean
    • cookie: Service
    • cookieOptIn: boolean

Generated using TypeDoc