> 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/onmanagedconsentneedsuserinterface.md).

# OnManagedConsentNeedsUserInterface

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

Notifies that Managed Consent needs to show a consent dialog. After receiving this notification, you should pause your application and call the [ShowConsentDialogIfNeeded](/aatkit-unity-integration/other/reference/aatkitbinding/methods/showconsentdialogifneeded.md) method.

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

```csharp
OnManagedConsentNeedsUserInterface()
```

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

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

```csharp
AATKitBinding.OnManagedConsentNeedsUserInterfaceDelegate += OnManagedConsentNeedsUserInterface;

public void OnManagedConsentNeedsUserInterface()
{
    Debug.Log("OnManagedConsentNeedsUserInterface");
    AATKitBinding.ShowConsentDialogIfNeeded();
}
```
