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 Details

    • CompletedDownload

      public CompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification)
    • CompletedDownload

      public CompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, @Nullable Uri uri, @Nullable Uri referrer)
  • Method Details

    • getTitle

      public String getTitle()
    • getDescription

      public String getDescription()
    • isMediaScannerScannable

      public boolean isMediaScannerScannable()
    • getMimeType

      public String getMimeType()
    • getPath

      public String getPath()
    • getLength

      public long getLength()
    • showNotification

      public boolean showNotification()
    • getUri

      @Nullable public Uri getUri()
    • getReferrer

      @Nullable public Uri getReferrer()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object