# managedConsentNeedsUserInterface

### 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` method.

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

```javascript
import RNAatkit from '@addapptr/react-native-aatkit'
import { NativeEventEmitter, NativeModules } from 'react-native';
const aatkitEmitter = new NativeEventEmitter(RNAatkit);

const subscription = aatkitEmitter.addListener(
    'managedConsentNeedsUserInterface',
    () => {
        console.log("managedConsentNeedsUserInterface");
    }
);
```
