> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-ionic-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-ionic-integration/other/reference/events/managedconsentcmpfinished.md).

# managedConsentCMPFinished

### Overview <a href="#markdown-header-overview" id="markdown-header-overview"></a>

Notifies that the used CMP has finished updating consent.

### Data passed by the event <a href="#markdown-header-data-passed-by-the-event" id="markdown-header-data-passed-by-the-event"></a>

**state**

Takes the following values:

* unknown - No information about consent state.
* withheld - Consent has been declined by the user.
* custom - Partial consent has been granted by the user - at least some purposes and some vendors were given consent.
* obtained - Full consent has been granted by the user.

### Examples <a href="#markdown-header-examples" id="markdown-header-examples"></a>

```typescript
document.addEventListener('managedConsentCMPFinished', (data: any) => {
  console.log('managedConsentCMPFinished state: ' + data.state);
});
```
