AI-generated Key Takeaways
-
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.
Callback functions used for feature downloading.
Public Method Summary
void |
onDownloadCompleted()
Called when the feature download is completed.
|
void | |
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.