Package com.mapfactor.sdk.data
Interface DataDownloadListener
public interface DataDownloadListener
App data download progress listener
- Since:
- 1.0
- 
Method SummaryModifier and TypeMethodDescriptionvoidonDownloadFailed(AppDataManager.DownloadErrorCode downloadErrorCode) Called when data download has failedvoidCalled when all files were successfully downloadedvoidonDownloadProgress(String dataId, String dataName, int iFile, int numFiles, long curFileProgress, long curFileSize, long totProgress, long totSize) App data download progressvoidCalled after new app data were downloaded and internal engines were restarted
- 
Method Details- 
onDownloadProgressvoid 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
 
- 
onDownloadFinishedvoid onDownloadFinished()Called when all files were successfully downloaded- Since:
- 1.0
 
- 
onDownloadFailedCalled when data download has failed- Parameters:
- downloadErrorCode- error code
- Since:
- 1.0
 
- 
onEngineRestartedvoid onEngineRestarted()Called after new app data were downloaded and internal engines were restarted- Since:
- 1.0
 
 
-