> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-unity-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-unity-integration/other/reference/aatkitbinding/delegates/onmanagedconsentcmpfinished.md).

# OnManagedConsentCMPFinished

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

Notifies that the used CMP has finished updating consent.

### Syntax <a href="#markdown-header-syntax" id="markdown-header-syntax"></a>

```csharp
OnManagedConsentCMPFinished(state)
```

state **(REQUIRED)**

*ManagedConsentState* Enum that 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.

**returns&#x20;*****void***

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

```csharp
AATKitBinding.OnManagedConsentCMPFinishedDelegate += OnManagedConsentCMPFinished;

public void OnManagedConsentCMPFinished(AATKitBinding.ManagedConsentState state)
{
    Debug.Log("OnManagedConsentCMPFinished state: " + state);
}
```
