• Synchronously check if a consent is given. See window.consentApi.consent for more documentation.

    Parameters

    • manager: CookieConsentManager<any>
    • typeOrIdOrUniqueName: string | number
    • Optional name: string
    • Optional host: string

      This can also be * to allow all hosts.

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

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