Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# DownloadListener

*** ** * ** ***


`
public


interface
DownloadListener
`


`


`

|---|
| android.webkit.DownloadListener |

<br />

*** ** * ** ***

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/webkit/DownloadListener#onDownloadStart(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20long)(https://developer.android.com/reference/java/lang/String url, https://developer.android.com/reference/java/lang/String userAgent, https://developer.android.com/reference/java/lang/String contentDisposition, https://developer.android.com/reference/java/lang/String mimetype, long contentLength) ` Notify the host application that a file should be downloaded |

## Public methods

### onDownloadStart

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onDownloadStart (String url, 
                String userAgent, 
                String contentDisposition, 
                String mimetype, 
                long contentLength)
```

Notify the host application that a file should be downloaded

<br />

| Parameters ||
|---|---|
| `url` | `String`: The full url to the content that should be downloaded <br /> |
| `userAgent` | `String`: the user agent to be used for the download. <br /> |
| `contentDisposition` | `String`: Content-disposition http header, if present. <br /> |
| `mimetype` | `String`: The mimetype of the content reported by the server <br /> |
| `contentLength` | `long`: The file size reported by the server <br /> |