Wiki
Clone wikiREACT native plugin / managedConsentCMPFinished
Overview
Notifies that the used CMP has finished updating consent.
Data passed by the event
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
#!javascript import RNAatkit from '@addapptr/react-native-aatkit' import { NativeEventEmitter, NativeModules } from 'react-native'; const aatkitEmitter = new NativeEventEmitter(RNAatkit); const subscription = aatkitEmitter.addListener( 'managedConsentCMPFinished', (data) => { console.log("managedConsentCMPFinished state: " + data.state); } );
Updated