Module "frontend-packages/cookie-consent-web-client/src/api/consentSync"
Functions
consentSync
- consentSync(manager: CookieConsentManager, typeOrId: ServiceTechnicalDefinition["type"] | number, name?: ServiceTechnicalDefinition["name"], host?: ServiceTechnicalDefinition["host"]): { consentGiven: boolean; cookie: Service; cookieOptIn: boolean }
-
Parameters
-
-
typeOrId: ServiceTechnicalDefinition["type"] | number
-
Optional name: ServiceTechnicalDefinition["name"]
-
Optional host: ServiceTechnicalDefinition["host"]
Returns { consentGiven: boolean; cookie: Service; cookieOptIn: boolean }
-
consentGiven: boolean
-
-
cookieOptIn: boolean
Synchronously check if a consent is given. See
window.consentApi.consent
for more documentation.