Package org.robolectric.shadows
Class ShadowDownloadManager
java.lang.Object
org.robolectric.shadows.ShadowDownloadManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classValue class to represent a "completed download" sent toDownloadManagerusing the addCompletedDownload APIs.static classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) getCompletedDownload(long id) intgetRequest(long id) intprotected 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()
-