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 java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAllowedNetworkTypes()booleangetAllowedOverMetered()booleangetAllowedOverRoaming()java.lang.CharSequencegetDescription()android.net.UrigetDestination()java.lang.CharSequencegetMimeType()intgetNotificationVisibility()java.util.List<android.util.Pair<java.lang.String,java.lang.String>>getRequestHeaders()intgetStatus()java.lang.CharSequencegetTitle()android.net.UrigetUri()booleangetVisibleInDownloadsUi()protected android.app.DownloadManager.RequestsetDestinationInExternalPublicDir(java.lang.String dirType, java.lang.String subPath)voidsetStatus(int status)
-
-
-
Method Detail
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int status)
-
getUri
public android.net.Uri getUri()
-
getDestination
public android.net.Uri getDestination()
-
getTitle
public java.lang.CharSequence getTitle()
-
getDescription
public java.lang.CharSequence getDescription()
-
getMimeType
public java.lang.CharSequence getMimeType()
-
getNotificationVisibility
public int getNotificationVisibility()
-
getAllowedNetworkTypes
public int getAllowedNetworkTypes()
-
getAllowedOverRoaming
public boolean getAllowedOverRoaming()
-
getAllowedOverMetered
public boolean getAllowedOverMetered()
-
getVisibleInDownloadsUi
public boolean getVisibleInDownloadsUi()
-
getRequestHeaders
public java.util.List<android.util.Pair<java.lang.String,java.lang.String>> getRequestHeaders()
-
setDestinationInExternalPublicDir
@Implementation protected android.app.DownloadManager.Request setDestinationInExternalPublicDir(java.lang.String dirType, java.lang.String subPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
-