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