• 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 | null;
        cookieOptIn: boolean;
    }

    • consentGiven: boolean

      This variable defines whether a valid consent has generally been given. This does not refer to the technical information that you have passed as arguments. For example: If the user clicks "Continue without Consent", this variable is set to true. The variable is false if the user has not yet given consent and the cookie banner is displayed.

    • cookie: Service | null

      If the website operator has defined a cookie or service with the information you requested, it will be returned here.

    • cookieOptIn: boolean

      This variable defines whether the technical information has been accepted.

      Attention: This variable is also true if no service (see cookie) is found.