public static class BoxRequestsPreview.DownloadPreview extends com.box.androidsdk.content.requests.BoxRequestDownload<com.box.androidsdk.content.models.BoxDownload,BoxRequestsPreview.DownloadPreview>
com.box.androidsdk.content.requests.BoxRequestDownload.DownloadRequestHandlercom.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 |
|---|---|
static int |
SIZE_1024 |
static int |
SIZE_1600 |
static int |
SIZE_2048 |
| Constructor and Description |
|---|
DownloadPreview(java.lang.String id,
java.io.OutputStream outputStream,
java.lang.String requestUrl,
com.box.androidsdk.content.models.BoxSession session)
Constructs a new request to download a preview
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getMaxHeight()
Gets the maximum height for the preview request.
|
java.lang.Integer |
getMaxWidth()
Gets the maximum width for the preview request.
|
java.lang.Integer |
getMinHeight()
Gets the minimum height for the preview request.
|
java.lang.Integer |
getMinWidth()
Gets the minimum width for the preview request.
|
java.lang.Integer |
getPage() |
BoxRequestsPreview.DownloadPreview |
setMaxHeight(int height)
Sets the maximum height for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMaxSize(int size)
Sets both the maximum height and maximum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMaxWidth(int width)
Sets the maximum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMinHeight(int height)
Sets the minimum height for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMinSize(int size)
Sets both the minimum height and minimum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setMinWidth(int width)
Sets the minimum width for the preview request.
|
BoxRequestsPreview.DownloadPreview |
setPage(int pageNumber) |
getId, getRangeEnd, getRangeStart, getTarget, getTargetStream, getVersion, logDebug, setDownloadStartListener, setHeaders, setProgressListener, setRange, setVersionbuildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logRequest, onSend, onSendCompleted, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic static int SIZE_1024
public static int SIZE_1600
public static int SIZE_2048
public DownloadPreview(java.lang.String id,
java.io.OutputStream outputStream,
java.lang.String requestUrl,
com.box.androidsdk.content.models.BoxSession session)
id - The id of the file to download a preview foroutputStream - The output stream to download the preview torequestUrl - URL for the preview downloadsession - Authenticated session to use to download withpublic java.lang.Integer getPage()
public BoxRequestsPreview.DownloadPreview setPage(int pageNumber)
public java.lang.Integer getMinWidth()
public BoxRequestsPreview.DownloadPreview setMinWidth(int width)
width - int for the minimum width.public java.lang.Integer getMaxWidth()
public BoxRequestsPreview.DownloadPreview setMaxWidth(int width)
width - int for the maximum width.public java.lang.Integer getMinHeight()
public BoxRequestsPreview.DownloadPreview setMinHeight(int height)
height - int for the minimum height.public java.lang.Integer getMaxHeight()
public BoxRequestsPreview.DownloadPreview setMaxHeight(int height)
height - int for the maximum height.public BoxRequestsPreview.DownloadPreview setMinSize(int size)
size - int for the minimum height and minimum width.public BoxRequestsPreview.DownloadPreview setMaxSize(int size)
size - int for the maximum height and maximum width.