DownloadType Property
The download type to use for file resources.
Syntax
ANSI (Cross Platform) int GetDownloadType();
int SetDownloadType(int iDownloadType); Unicode (Windows) INT GetDownloadType();
INT SetDownloadType(INT iDownloadType);
Possible Values
DDT_FILE_CONTENT(0),
DDT_FILE_THUMBNAIL(1),
DDT_FILE_PREVIEW(2)
@property (nonatomic,readwrite,assign,getter=downloadType,setter=setDownloadType:) int downloadType; - (int)downloadType; - (void)setDownloadType:(int)newDownloadType;
Possible Values
DDT_FILE_CONTENT(0),
DDT_FILE_THUMBNAIL(1),
DDT_FILE_PREVIEW(2)
#define PID_DROPBOX_DOWNLOADTYPE 17 IPWORKSCLOUD_EXTERNAL void* IPWORKSCLOUD_CALL IPWorksCloud_Dropbox_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_Dropbox_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
This property controls what the class will download when DownloadFile is called for a file resource. Possible values are:
0 (ddtFileContent - default) | DownloadFile will download the file's contents. |
1 (ddtFileThumbnail) | DownloadFile will download a thumbnail of the file. |
2 (ddtFilePreview) | DownloadFile will download a PDF- or HTML-based preview of the file. |
File thumbnails may be customized using the ThumbnailFormat, ThumbnailMode, and ThumbnailSize configuration settings; and are supported for the following file types: .bmp, .gif, .jpeg, .jpg, .png, .tif, and .tiff.
File previews are supported for the following file types:
- PDF-based: .ai, .doc, .docm, .docx, .eps, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, and .rtf.
- HTML-based: .csv, .ods, .xls, .xlsm, and .xlsx
This property is not available at design time.
Data Type
Integer