com.foxit.sdk.PDFViewCtrl.CacheOption Class Reference

Public Member Functions

void enableDownloadAll (boolean isDownloadAll)
 
void setCacheFile (String cacheFile)
 

Detailed Description

Class for customizing cache option.

Member Function Documentation

◆ enableDownloadAll()

void com.foxit.sdk.PDFViewCtrl.CacheOption.enableDownloadAll ( boolean  isDownloadAll)

Whether download the entire file, default download parts of the document.

Parameters
isDownloadAllTrue: download continuously util the entire file finishes downloading. otherwise, download parts of the document.

◆ setCacheFile()

void com.foxit.sdk.PDFViewCtrl.CacheOption.setCacheFile ( String  cacheFile)

Sets the cache file path while uses in openDocFromUrl(String, byte[], CacheOption, HttpRequestProperties)

Parameters
cacheFileThe cache path used to download the PDF file. If null or blank, the document will be stored in a default cache location. It should be a absolute path. such as: "/mnt/sdcard/FoxitSDK/complete_demo_guide.pdf".
See also
openDocFromUrl(String, byte[], CacheOption, HttpRequestProperties)