Interface DataDownloadListener


public interface DataDownloadListener
App data download progress listener
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when data download has failed
    void
    Called when all files were successfully downloaded
    void
    onDownloadProgress(String dataId, String dataName, int iFile, int numFiles, long curFileProgress, long curFileSize, long totProgress, long totSize)
    App data download progress
    void
    Called after new app data were downloaded and internal engines were restarted
  • Method Details

    • onDownloadProgress

      void onDownloadProgress(@NonNull String dataId, @NonNull String dataName, int iFile, int numFiles, long curFileProgress, long curFileSize, long totProgress, long totSize)
      App data download progress
      Parameters:
      dataId - currently downloaded data Id
      dataName - currently downloaded data name
      iFile - sequence of currently downloaded data (iFile out of numFiles)
      numFiles - total files count being downloaded (iFile out of numFiles)
      curFileProgress - currently downloaded file bytes already downloaded
      curFileSize - currently downloaded file size in bytes
      totProgress - total bytes already downloaded
      totSize - overall size of all downloaded files in bytes
      Since:
      1.0
    • onDownloadFinished

      void onDownloadFinished()
      Called when all files were successfully downloaded
      Since:
      1.0
    • onDownloadFailed

      void onDownloadFailed(@NonNull AppDataManager.DownloadErrorCode downloadErrorCode)
      Called when data download has failed
      Parameters:
      downloadErrorCode - error code
      Since:
      1.0
    • onEngineRestarted

      void onEngineRestarted()
      Called after new app data were downloaded and internal engines were restarted
      Since:
      1.0