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 Summary
Constructors Constructor Description ShadowRequest()
-
Method Summary
Modifier and Type Method Description int
getAllowedNetworkTypes()
boolean
getAllowedOverMetered()
boolean
getAllowedOverRoaming()
long
getBytesSoFar()
CharSequence
getDescription()
Uri
getDestination()
CharSequence
getMimeType()
int
getNotificationVisibility()
List<Pair<String,String>>
getRequestHeaders()
int
getStatus()
CharSequence
getTitle()
long
getTotalSize()
Uri
getUri()
boolean
getVisibleInDownloadsUi()
void
setBytesSoFar(long bytesSoFar)
protected void
setDestinationFromBase(File base, String subPath)
protected DownloadManager.Request
setDestinationInExternalPublicDir(String dirType, String subPath)
void
setStatus(int status)
void
setTotalSize(long totalSize)
-
Constructor Details
-
ShadowRequest
public ShadowRequest()
-
-
Method Details
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int status) -
getTotalSize
public long getTotalSize() -
setTotalSize
public void setTotalSize(long totalSize) -
getBytesSoFar
public long getBytesSoFar() -
setBytesSoFar
public void setBytesSoFar(long bytesSoFar) -
getUri
-
getDestination
-
getTitle
-
getDescription
-
getMimeType
-
getNotificationVisibility
public int getNotificationVisibility() -
getAllowedNetworkTypes
public int getAllowedNetworkTypes() -
getAllowedOverRoaming
public boolean getAllowedOverRoaming() -
getAllowedOverMetered
public boolean getAllowedOverMetered() -
getVisibleInDownloadsUi
public boolean getVisibleInDownloadsUi() -
getRequestHeaders
-
setDestinationInExternalPublicDir
@Implementation protected DownloadManager.Request setDestinationInExternalPublicDir(String dirType, String subPath) throws Exception- Throws:
Exception
-
setDestinationFromBase
-