Package org.robolectric.shadows
Class ShadowDownloadManager.ShadowRequest
java.lang.Object
org.robolectric.shadows.ShadowDownloadManager.ShadowRequest
- Enclosing class:
- ShadowDownloadManager
@Implements(android.app.DownloadManager.Request.class) public static class ShadowDownloadManager.ShadowRequest extends Object
- 
Constructor SummaryConstructors Constructor Description ShadowRequest()
- 
Method SummaryModifier and Type Method Description intgetAllowedNetworkTypes()booleangetAllowedOverMetered()booleangetAllowedOverRoaming()longgetBytesSoFar()CharSequencegetDescription()UrigetDestination()CharSequencegetMimeType()intgetNotificationVisibility()List<Pair<String,String>>getRequestHeaders()intgetStatus()CharSequencegetTitle()longgetTotalSize()UrigetUri()booleangetVisibleInDownloadsUi()voidsetBytesSoFar(long bytesSoFar)protected voidsetDestinationFromBase(File base, String subPath)protected DownloadManager.RequestsetDestinationInExternalPublicDir(String dirType, String subPath)voidsetStatus(int status)voidsetTotalSize(long totalSize)
- 
Constructor Details- 
ShadowRequestpublic ShadowRequest()
 
- 
- 
Method Details- 
getStatuspublic int getStatus()
- 
setStatuspublic void setStatus(int status)
- 
getTotalSizepublic long getTotalSize()
- 
setTotalSizepublic void setTotalSize(long totalSize)
- 
getBytesSoFarpublic long getBytesSoFar()
- 
setBytesSoFarpublic void setBytesSoFar(long bytesSoFar)
- 
getUri
- 
getDestination
- 
getTitle
- 
getDescription
- 
getMimeType
- 
getNotificationVisibilitypublic int getNotificationVisibility()
- 
getAllowedNetworkTypespublic int getAllowedNetworkTypes()
- 
getAllowedOverRoamingpublic boolean getAllowedOverRoaming()
- 
getAllowedOverMeteredpublic boolean getAllowedOverMetered()
- 
getVisibleInDownloadsUipublic boolean getVisibleInDownloadsUi()
- 
getRequestHeaders
- 
setDestinationInExternalPublicDir@Implementation protected DownloadManager.Request setDestinationInExternalPublicDir(String dirType, String subPath) throws Exception- Throws:
- Exception
 
- 
setDestinationFromBase
 
-