Wiki

Clone wiki

REACT native plugin / AATKitPauseForAd

Overview

Notifies that ad went fullscreen and that application should pause.

Data passed by the event

placementName

Unique name of the placement. The same name will be used in addapptr.com account. On iOS due to architectural constraints this param is always "undefinied".

Examples

#!javascript

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

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

Updated