Type Function Return value none Revision 2017.3060 Keywords analytics, attribution, Kochava, init See also kochava.*
kochava.init() initializes the Kochava SDK.
Once initialized, you can call any of the other Kochava API functions such as kochava.logStandardEvent().
kochava.init( listener, params )
Listener. Listener that will receive analyticsRequest events.
Table. Table containing Kochava initialization values — see the next section for details.
The params table includes parameters for the Kochava initialization.
Boolean. Limits ad tracking when set to true. Default is false.
Boolean. Debug logging will display extra information in the device log for easier troubleshooting. Default is false.
Boolean. Request for attribution data to be retrieved from Kochava. The data will be sent to the Corona listener given when calling this function. Default is false.
local kochava = require( "plugin.kochava" )
local function kochavaListener( event )
-- Handle events here
end
-- Initialize plugin
kochava.init( kochavaListener,
{
appGUID = "YOUR_APP_GUID",
enableDebugLogging = true
}
)