public class DownloadAndCacheBroadcastReceiver extends android.content.BroadcastReceiver implements LayerDownloader.Callback
Constructor and Description |
---|
DownloadAndCacheBroadcastReceiver(OnlineLayersDownloadManager downloader,
LayersManagerBroadcastReceiver lmbr) |
Modifier and Type | Method and Description |
---|---|
void |
onDownloadStatus(LayerDownloader.DownloadStatus status)
Download progress update
|
void |
onJobStatus(LayerDownloader.JobStatus status)
Job status update
|
void |
onLevelProgressUpdate(java.lang.String title,
int progress)
The max progress up to the current level has been changed
Usually this means the next level has begun downloading
|
void |
onMaxProgressUpdate(java.lang.String title,
int progress)
The max overall progress value has been changed
|
void |
onReceive(android.content.Context context,
android.content.Intent intent)
Deprecated.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public DownloadAndCacheBroadcastReceiver(OnlineLayersDownloadManager downloader, LayersManagerBroadcastReceiver lmbr)
public void onDownloadStatus(LayerDownloader.DownloadStatus status)
LayerDownloader.Callback
onDownloadStatus
in interface LayerDownloader.Callback
status
- Download status and progress statspublic void onMaxProgressUpdate(java.lang.String title, int progress)
LayerDownloader.Callback
onMaxProgressUpdate
in interface LayerDownloader.Callback
title
- Layer titleprogress
- Progresspublic void onLevelProgressUpdate(java.lang.String title, int progress)
LayerDownloader.Callback
onLevelProgressUpdate
in interface LayerDownloader.Callback
title
- Layer titleprogress
- Progresspublic void onJobStatus(LayerDownloader.JobStatus status)
LayerDownloader.Callback
onJobStatus
in interface LayerDownloader.Callback
status
- Job status@Deprecated public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver