Package org.robolectric.shadows
Class ShadowDownloadManager.CompletedDownload
java.lang.Object
org.robolectric.shadows.ShadowDownloadManager.CompletedDownload
- Enclosing class:
- ShadowDownloadManager
public static class ShadowDownloadManager.CompletedDownload extends Object
Value class to represent a "completed download" sent to
DownloadManager
using the
addCompletedDownload APIs.-
Constructor Summary
Constructors Constructor Description CompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification)
CompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, Uri uri, Uri referrer)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
String
getDescription()
long
getLength()
String
getMimeType()
String
getPath()
Uri
getReferrer()
String
getTitle()
Uri
getUri()
int
hashCode()
boolean
isMediaScannerScannable()
boolean
showNotification()
-
Constructor Details
-
Method Details
-
getTitle
-
getDescription
-
isMediaScannerScannable
public boolean isMediaScannerScannable() -
getMimeType
-
getPath
-
getLength
public long getLength() -
showNotification
public boolean showNotification() -
getUri
-
getReferrer
-
equals
-
hashCode
public int hashCode()
-