Optionalname: stringOptionalhost: stringThis can also be * to allow all hosts.
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.
If the website operator has defined a cookie or service with the information you requested, it will be returned here.
This variable defines whether the technical information has been accepted.
Attention: This variable is also true if no service (see cookie) is found.
Synchronously check if a consent is given. See
window.consentApi.consentfor more documentation.