DownloadIndex
@WorkerThread
@UnstableApi
interface DownloadIndex
WritableDownloadIndex |
A writable index of |
DefaultDownloadIndex |
A |
An index of Downloads.
Summary
Public functions |
|
|---|---|
Download? |
getDownload(id: String!)Returns the |
DownloadCursor! |
getDownloads(@Download.State states: IntArray!)Returns a |
Public functions
getDownload
fun getDownload(id: String!): Download?
Returns the Download with the given id, or null.
This method may be slow and shouldn't normally be called on the main thread.
| Returns | |
|---|---|
Download? |
The |
| Throws | |
|---|---|
java.io.IOException |
If an error occurs reading the state. |
getDownloads
fun getDownloads(@Download.State states: IntArray!): DownloadCursor!
Returns a DownloadCursor to Downloads with the given states.
This method may be slow and shouldn't normally be called on the main thread.
| Parameters | |
|---|---|
@Download.State states: IntArray! |
Returns only the |
| Returns | |
|---|---|
DownloadCursor! |
A cursor to |
| Throws | |
|---|---|
java.io.IOException |
If an error occurs reading the state. |