Pass the object implementing ReportsDelegate to AATKit using configuration object.
private void configureAATKit() {
AATKitConfiguration configuration = new AATKitConfiguration(this);
configuration.setReportsDelegate(this);
AATKit.init(configuration);
}
@Override
public void onReportsSent(@NonNull String report) {
// A report has been sent
}
private fun configureAATKit() {
val configuration = AATKitConfiguration(this)
configuration.reportsDelegate = this
AATKit.init(configuration)
}
override fun onReportsSent(report: String) {
// A report has been sent
}