public class DownloadFiles
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addListener(MapDownloadListener listener)
add to broadcast list
|
void |
cancelAsyncTask() |
static DownloadFiles |
getDownloader() |
boolean |
isAsytaskFinished() |
void |
removeListener(MapDownloadListener listener)
remove listener from broadcast list
|
void |
startDownload(java.io.File mapsFolder,
java.lang.String mapName,
java.lang.String urlStr)
download and unzip map files and save it in mapsFolder/currentArea-gh/
|
public static DownloadFiles getDownloader()
public void startDownload(java.io.File mapsFolder, java.lang.String mapName, java.lang.String urlStr)
mapsFolder
- maps folder for mapsmapName
- area (country) to downloadurlStr
- download linkpublic void addListener(MapDownloadListener listener)
listener
- MapDownloadListenerpublic void removeListener(MapDownloadListener listener)
listener
- MapDownloadListenerpublic boolean isAsytaskFinished()
public void cancelAsyncTask()