# Reports Delegate

### Listen to Reports Events <a href="#listen-to-reports-events" id="listen-to-reports-events"></a>

* Initialise AATKit first.
* Implement [ReportsDelegate](https://android-sdk.aatkit.com/references/-a-a-t-kit/com.intentsoftware.addapptr/-a-a-t-kit-configuration/-reports-delegate/index.html).
* Pass the object implementing `ReportsDelegate` to AATKit using configuration object.

{% tabs %}
{% tab title="Java" %}

```java
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
}
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
private fun configureAATKit() {
    val configuration = AATKitConfiguration(this)
    configuration.reportsDelegate = this
    AATKit.init(configuration)
}

override fun onReportsSent(report: String) {
    // A report has been sent
}
```

{% endtab %}
{% endtabs %}
