public class ImportFileDownloader extends NetworkLinkDownloader
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
TAG |
_context, _downloading, _refresher
Constructor and Description |
---|
ImportFileDownloader(android.content.Context context,
int flags)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
download(RemoteResource resource,
boolean showNotifications)
Download specified file asynchronously
|
void |
ndl(com.atakmap.android.importfiles.http.RemoteResourceRequest r) |
void |
onRequestConnectionError(Request request,
RequestManager.ConnectionError ce) |
void |
onRequestCustomError(Request request,
android.os.Bundle resultData) |
void |
onRequestDataError(Request request) |
void |
onRequestFinished(Request request,
android.os.Bundle resultData) |
addRefreshLink, download, getContext, getLinkRefresh, getNotificationId, getString, isDownloading, isErrorNotification, postNotification, postNotification, postNotification, postNotification, removeRefreshLink, shutdown
protected static final java.lang.String TAG
public ImportFileDownloader(android.content.Context context, int flags)
context
- the context to be used during the download processflags
- public void download(RemoteResource resource, boolean showNotifications)
download
in class NetworkLinkDownloader
resource
- the resource to be downloadedshowNotifications
- True to show notifications during DL/importpublic void ndl(com.atakmap.android.importfiles.http.RemoteResourceRequest r)
public void onRequestFinished(Request request, android.os.Bundle resultData)
public void onRequestConnectionError(Request request, RequestManager.ConnectionError ce)
public void onRequestDataError(Request request)
public void onRequestCustomError(Request request, android.os.Bundle resultData)