Wiki

Clone wiki

REACT native plugin / reloadPlacement

Overview

Requests placement reload. Works only if automatic reloading is disabled.

Syntax

reloadPlacement(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 call ends in causing a placement to reload, false otherwise.

Examples

#!javascript

RNAatkit.reloadPlacement("BannerPlacement", (placementReloaded) => {
                console.log("placementReloaded " + placementReloaded);
            });

Updated