acceptAll() | void | Accept all cookie categories |
rejectAll() | void | Reject all non-functional cookies |
acceptCategories(categories) | void | Accept specific categories |
optOutOfSale() | void | CCPA: opt out of sale/sharing of personal information |
hasConsent() | boolean | Whether visitor has made a consent choice |
getConsent() | object | null | Current consent state ({ type, categories }) |
getAllowedCategories() | string[] | Currently allowed categories |
isCategoryAllowed(category) | boolean | Check if a specific category is allowed |
isCookieAllowed(name) | boolean | Check if a specific cookie is allowed |
isGPCEnabled() | boolean | Whether browser GPC signal is active |
getRegulation() | string | Active regulation ('gdpr' or 'ccpa') |