public static interface BackgroundTaskDownload.DownloadTask
| Modifier and Type | Method and Description |
|---|---|
void |
download(File fileToSaveTo)
A task, which is executed during the run()-method of BackgroundTaskDownload.
|
void download(File fileToSaveTo) throws Exception
Note: Do not forget to close the system resources e.g. FileOutputStream. This can be done with a try-finally block.
fileToSaveTo - A File which was determined in BackgroundTaskDownloadException - the Exceptions will be caught by BackgroundTaskDownloadCopyright © 2012–2025 cismet GmbH. All rights reserved.