AATKitObtainedAdRules

Overview

Notifies that the AATKit has obtained ad rules.

Data passed by the event

fromTheServer

Indicates if the rules came from the server. It will return false if the currently used rules come from the AATKit.setInitialRules(String) method or the cached rules are used.

Examples

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

const subscription = aatkitEmitter.addListener(
  'AATKitObtainedAdRules',
  (data) => console.log("AATKitObtainedAdRules fromTheServer: " + data.fromTheServer)
);

Last updated