initWithConfigurationAndCallback

Overview

Initializes the AATKit library and triggers the passed callback. Should be called once during application initialization before any other calls to AATKit.

Syntax

initWithConfigurationAndCallback(initConfig, callback)

initConfig REQUIRED

The JSON object containing configuration. Set parameters listed here, otherwise AATKit uses default values.

callback REQUIRED

Callback<Boolean> Triggered when function completion is done. Passes the boolean value to inform whether AATKit is initialized.

Examples

RNAatkit.initWithConfigurationAndCallback(
    {
        testModeAccountID: 136
    },
    (initialized) => {
        console.log("AATKit initialized: " + initialized);
    });
    );

Last updated