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 booleanequals(Object o)StringgetDescription()longgetLength()StringgetMimeType()StringgetPath()UrigetReferrer()StringgetTitle()UrigetUri()inthashCode()booleanisMediaScannerScannable()booleanshowNotification()
-
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()
-