Package com.mapfactor.sdk.data
Interface DataDownloadListener
public interface DataDownloadListener
App data download progress listener
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDownloadFailed
(AppDataManager.DownloadErrorCode downloadErrorCode) Called when data download has failedvoid
Called when all files were successfully downloadedvoid
onDownloadProgress
(String dataId, String dataName, int iFile, int numFiles, long curFileProgress, long curFileSize, long totProgress, long totSize) App data download progressvoid
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 IddataName
- currently downloaded data nameiFile
- 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 downloadedcurFileSize
- currently downloaded file size in bytestotProgress
- total bytes already downloadedtotSize
- 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
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
-