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
All Methods Instance Methods Concrete Methods Modifier 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)
-
-
-
Method Detail
-
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
public Uri getUri()
-
getDestination
public Uri getDestination()
-
getTitle
public CharSequence getTitle()
-
getDescription
public CharSequence getDescription()
-
getMimeType
public CharSequence getMimeType()
-
getNotificationVisibility
public int getNotificationVisibility()
-
getAllowedNetworkTypes
public int getAllowedNetworkTypes()
-
getAllowedOverRoaming
public boolean getAllowedOverRoaming()
-
getAllowedOverMetered
public boolean getAllowedOverMetered()
-
getVisibleInDownloadsUi
public boolean getVisibleInDownloadsUi()
-
setDestinationInExternalPublicDir
@Implementation protected DownloadManager.Request setDestinationInExternalPublicDir(String dirType, String subPath) throws Exception
- Throws:
Exception
-
setDestinationFromBase
@Implementation protected void setDestinationFromBase(File base, String subPath)
-
-