public abstract static class CacheManager.CacheManagerDialog extends Object implements CacheManager.CacheManagerCallback
Constructor and Description |
---|
CacheManagerDialog(Context pCtx,
CacheManager.CacheManagerTask pTask) |
Modifier and Type | Method and Description |
---|---|
void |
downloadStarted()
as soon as the download is started, this is fired
|
protected abstract String |
getUITitle() |
void |
onTaskComplete()
fired when the download job is done.
|
void |
onTaskFailed(int errors)
this is fired when the task has been completed but had at least one download error.
|
void |
setPossibleTilesInArea(int total)
this is fired right before the download starts
|
void |
updateProgress(int progress,
int currentZoomLevel,
int zoomMin,
int zoomMax)
this is fired periodically, useful for updating dialogs, progress bars, etc
|
protected String |
zoomMessage(int zoomLevel,
int zoomMin,
int zoomMax) |
public CacheManagerDialog(Context pCtx, CacheManager.CacheManagerTask pTask)
protected String zoomMessage(int zoomLevel, int zoomMin, int zoomMax)
protected abstract String getUITitle()
public void updateProgress(int progress, int currentZoomLevel, int zoomMin, int zoomMax)
CacheManager.CacheManagerCallback
updateProgress
in interface CacheManager.CacheManagerCallback
public void downloadStarted()
CacheManager.CacheManagerCallback
downloadStarted
in interface CacheManager.CacheManagerCallback
public void setPossibleTilesInArea(int total)
CacheManager.CacheManagerCallback
setPossibleTilesInArea
in interface CacheManager.CacheManagerCallback
public void onTaskComplete()
CacheManager.CacheManagerCallback
onTaskComplete
in interface CacheManager.CacheManagerCallback
public void onTaskFailed(int errors)
CacheManager.CacheManagerCallback
onTaskFailed
in interface CacheManager.CacheManagerCallback