Reports API Initialization
dataListener()
This function is called when all report data has been loaded.
You would want to use this to ensure all data has loaded before showing the report, for example. You can also store the report data for your own application.
Examples
var callbacks = {
dataListener: function (reportsData) {
console.log('The callback that is executed when the report data has loaded.');
console.log(reportsData);
},
// ...
};
Arguments
-
reportsData array[ReportDataObject]
-
ReportDataObject object
An object containing the report ID and data for a given report.
-
id string
A unique identifier for the report.
-
data object
An object containing the report data.
-
-
Return value
None (undefined
).