public static class BoxRequestsPreview.PreviewBatchRequest
extends BoxRequestBatch
| Modifier and Type | Class and Description |
|---|---|
protected class |
BoxRequestsPreview.PreviewBatchRequest.WrapperProgressListener |
| Modifier and Type | Field and Description |
|---|---|
protected int |
mMainDownloadIndex |
protected BoxRequestsPreview.PreviewBatchRequest.WrapperProgressListener |
mWrapperListener |
| Constructor and Description |
|---|
PreviewBatchRequest() |
| Modifier and Type | Method and Description |
|---|---|
BoxRequestBatch |
addMainDownloadRequest(BoxRequestDownload request)
Adds the request mainly responsible for downloading the required content.
|
int |
getMainDownloadIndex()
Get the index for the main download.
|
BoxRequestDownload |
getMainDownloadRequest()
If set the request that acts as the main download request.
|
boolean |
hasMainDownloadRequest() |
BoxRequestsPreview.PreviewBatchRequest |
setDownloadStartListener(DownloadStartListener listener)
Sets the download start listener for the main download request.
|
protected void |
setMandatoryProgressListener(ProgressListener listener)
Sets a progress listener that will not be overwritten by setProgressListener.
|
BoxRequestsPreview.PreviewBatchRequest |
setProgressListener(ProgressListener listener)
Sets the progress listener for the main download request.
|
protected int mMainDownloadIndex
protected BoxRequestsPreview.PreviewBatchRequest.WrapperProgressListener mWrapperListener
public BoxRequestBatch addMainDownloadRequest(BoxRequestDownload request)
request - the download request.public BoxRequestDownload getMainDownloadRequest()
public BoxRequestsPreview.PreviewBatchRequest setProgressListener(ProgressListener listener)
listener - progress listener for the download.protected void setMandatoryProgressListener(ProgressListener listener)
listener - A listener that will not be overwritten by setProgressListener.public BoxRequestsPreview.PreviewBatchRequest setDownloadStartListener(DownloadStartListener listener)
listener - an optional listener for knowing when the download for this request has started.public boolean hasMainDownloadRequest()
public int getMainDownloadIndex()