Wiki

Clone wiki

REACT native plugin / isNetworkEnabled

Overview

Returns true if ad network is enabled, false otherwise.

Syntax

isNetworkEnabled(int network, Callback callback)
network (required)

int . Ad network. See network constants here.

callback(required)

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

Parameters:

  • Boolean - True if ad network is enabled, false otherwise.

Examples

#!javascript

RNAatkit.isNetworkEnabled(RNAatkit.AdNetwork_MILLENNIAL, (networkEnabled) => {
                console.log("networkEnabled" + networkEnabled);
            });

Updated