Wiki

Clone wiki

REACT native plugin / showPlacement

Overview

Shows interstitial ad if ad is ready.

Syntax

showPlacement(placementName, callback)
placementName (required)

string. Unique name of placement. The same name will be used in addapptr.com account.

callback(required)

Callback<Boolean>. Used to provide the function call result to JavaScript.

Parameters:

  • Boolean - True if showing interstitial was successful, false otherwise.

Examples

#!javascript

RNAatkit.showPlacement("Fullscreen", (interstitialShown) => {
                console.log("interstitialShown " + interstitialShown);
            });

Updated