Wiki

Clone wiki

REACT native plugin / managedConsentNeedsUserInterface

Overview

Notifies that Managed Consent needs to show a consent dialog. After receiving this notification, you should pause your application and call the showConsentDialogIfNeeded method.

Examples

#!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");
    }
);

Updated