public interface **DownloadCallback** Callback functions used for feature downloading.

### Public Method Summary

|---|---|
| void | [onDownloadCompleted](https://developers.google.com/android/reference/com/google/mlkit/genai/common/DownloadCallback#onDownloadCompleted())() Called when the feature download is completed. |
| void | [onDownloadFailed](https://developers.google.com/android/reference/com/google/mlkit/genai/common/DownloadCallback#onDownloadFailed(com.google.mlkit.genai.common.GenAiException))([GenAiException](https://developers.google.com/android/reference/com/google/mlkit/genai/common/GenAiException) e) Called when the feature download failed. |
| void | [onDownloadProgress](https://developers.google.com/android/reference/com/google/mlkit/genai/common/DownloadCallback#onDownloadProgress(long))(long totalBytesDownloaded) Called when the feature download is in progress. |
| void | [onDownloadStarted](https://developers.google.com/android/reference/com/google/mlkit/genai/common/DownloadCallback#onDownloadStarted(long))(long bytesToDownload) Called when the feature download started properly. |

## Public Methods

#### public void **onDownloadCompleted** ()

Called when the feature download is completed.

#### public void **onDownloadFailed** ([GenAiException](https://developers.google.com/android/reference/com/google/mlkit/genai/common/GenAiException) e)

Called when the feature download failed.

#### public void **onDownloadProgress** (long totalBytesDownloaded)

Called when the feature download is in progress.

#### public void **onDownloadStarted** (long bytesToDownload)

Called when the feature download started properly.