- consentSync(manager, typeOrIdOrUniqueName, name?, host?): {
consentGiven: boolean;
cookie: Service;
cookieOptIn: boolean;
} Parameters
- manager: CookieConsentManager<any>
- typeOrIdOrUniqueName: string | number
Optional
name: stringOptional
host: string
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.