Document the methods of DownloadClient

This commit is contained in:
Gabriele M
2017-07-08 17:20:47 +02:00
parent 1c212075f1
commit e413510093

View File

@@ -39,10 +39,22 @@ public interface DownloadClient {
Map<String, List<String>> getAll();
}
/**
* Start the download. This method has no effect if the download already started.
*/
void start();
/**
* Resume the download. The download will fail if the server can't fulfil the
* partial content request and DownloadCallback.onFailure() will be called.
* This method has no effect if the download already started or the destination
* file doesn't exist.
*/
void resume();
/**
* Cancel the download. This method has no effect if the download isn't ongoing.
*/
void cancel();
final class Builder {