DownloadCallback

  • The DownloadCallback interface provides callback functions for feature downloading.

  • Methods are available to signal the start, progress, completion, or failure of a feature download.

  • onDownloadStarted provides the total bytes to download, and onDownloadProgress provides the total bytes downloaded.

  • onDownloadFailed includes a GenAiException to indicate the cause of the failure.

public interface DownloadCallback

Callback functions used for feature downloading.

Public Method Summary

void
onDownloadCompleted()
Called when the feature download is completed.
void
onDownloadFailed(GenAiException e)
Called when the feature download failed.
void
onDownloadProgress(long totalBytesDownloaded)
Called when the feature download is in progress.
void
onDownloadStarted(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 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.