Package org.robolectric.shadows
Class ShadowDownloadManager
java.lang.Object
org.robolectric.shadows.ShadowDownloadManager
@Implements(android.app.DownloadManager.class) public class ShadowDownloadManager extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowDownloadManager.CompletedDownloadValue class to represent a "completed download" sent toDownloadManagerusing the addCompletedDownload APIs.static classShadowDownloadManager.ShadowQuerystatic classShadowDownloadManager.ShadowRequest -
Constructor Summary
Constructors Constructor Description ShadowDownloadManager() -
Method Summary
Modifier and Type Method Description protected longaddCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification)protected longaddCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, Uri uri, Uri referrer)protected longenqueue(DownloadManager.Request request)ShadowDownloadManager.CompletedDownloadgetCompletedDownload(long id)intgetCompletedDownloadsCount()DownloadManager.RequestgetRequest(long id)intgetRequestCount()protected Cursorquery(DownloadManager.Query query)protected intremove(long... ids)
-
Constructor Details
-
ShadowDownloadManager
public ShadowDownloadManager()
-
-
Method Details
-
enqueue
-
remove
-
query
-
addCompletedDownload
@Implementation protected long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification) -
addCompletedDownload
-
getRequest
-
getRequestCount
public int getRequestCount() -
getCompletedDownload
-
getCompletedDownloadsCount
public int getCompletedDownloadsCount()
-