> For the complete documentation index, see [llms.txt](https://intowow.gitbook.io/crystalexpress-documentation-v3-x/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intowow.gitbook.io/crystalexpress-documentation-v3-x/android-sdk/api-reference/downloadtrafficlistener.md).

# DownloadTrafficListener

**package com.intowow\.sdk**

**public interface DownloadTrafficListener**

This interface can be used to let App get more information about the status of SDK downloading file . If you set this interface to SDK by calling `I2WAPI.setDownloadTrafficListener(Context context, DownloadTrafficListener listener)`, then it would be saved as a `WeakReference`, so App should maintain this interface life cycle by self.

| Public methods |                                                                                                                                                                                                                               |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| void           | <p><a href="/crystalexpress-documentation-v3-x/android-sdk/api-reference/downloadtrafficlistener.md#onDownloadTaskEnded">onDownloadTaskEnded(long downloadTraffic)</a> <br> SDK callbacks the downloaded file size to App</p> |

## Public methods

### onDownloadTaskEnded <a href="#ondownloadtaskended" id="ondownloadtaskended"></a>

void onDownloadTaskEnded(long downloadTraffic)

SDK callbacks the downloaded file size to App

| Parameters      |                                  |
| --------------- | -------------------------------- |
| downloadTraffic | long : The downloaded file size. |
