public static class BoxRequestsPreview.PreviewBatchRequest
extends com.box.androidsdk.content.requests.BoxRequestBatch
| Modifier and Type | Class and Description |
|---|---|
protected class |
BoxRequestsPreview.PreviewBatchRequest.WrapperProgressListener |
com.box.androidsdk.content.requests.BoxRequest.BoxRequestHandler<R extends com.box.androidsdk.content.requests.BoxRequest>, com.box.androidsdk.content.requests.BoxRequest.ContentTypes, com.box.androidsdk.content.requests.BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
protected int |
mMainDownloadIndex |
protected BoxRequestsPreview.PreviewBatchRequest.WrapperProgressListener |
mWrapperListener |
| Constructor and Description |
|---|
PreviewBatchRequest() |
| Modifier and Type | Method and Description |
|---|---|
com.box.androidsdk.content.requests.BoxRequestBatch |
addMainDownloadRequest(com.box.androidsdk.content.requests.BoxRequestDownload request)
Adds the request mainly responsible for downloading the required content.
|
int |
getMainDownloadIndex()
Get the index for the main download.
|
com.box.androidsdk.content.requests.BoxRequestDownload |
getMainDownloadRequest()
If set the request that acts as the main download request.
|
boolean |
hasMainDownloadRequest() |
BoxRequestsPreview.PreviewBatchRequest |
setDownloadStartListener(com.box.androidsdk.content.listeners.DownloadStartListener listener)
Sets the download start listener for the main download request.
|
protected void |
setMandatoryProgressListener(com.box.androidsdk.content.listeners.ProgressListener listener)
Sets a progress listener that will not be overwritten by setProgressListener.
|
BoxRequestsPreview.PreviewBatchRequest |
setProgressListener(com.box.androidsdk.content.listeners.ProgressListener listener)
Sets the progress listener for the main download request.
|
addRequest, onSend, setExecutorbuildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSendCompleted, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskprotected int mMainDownloadIndex
protected BoxRequestsPreview.PreviewBatchRequest.WrapperProgressListener mWrapperListener
public com.box.androidsdk.content.requests.BoxRequestBatch addMainDownloadRequest(com.box.androidsdk.content.requests.BoxRequestDownload request)
request - the download request.public com.box.androidsdk.content.requests.BoxRequestDownload getMainDownloadRequest()
public BoxRequestsPreview.PreviewBatchRequest setProgressListener(com.box.androidsdk.content.listeners.ProgressListener listener)
listener - progress listener for the download.protected void setMandatoryProgressListener(com.box.androidsdk.content.listeners.ProgressListener listener)
listener - A listener that will not be overwritten by setProgressListener.public BoxRequestsPreview.PreviewBatchRequest setDownloadStartListener(com.box.androidsdk.content.listeners.DownloadStartListener listener)
listener - an optional listener for knowing when the download for this request has started.public boolean hasMainDownloadRequest()
public int getMainDownloadIndex()