java.lang.Object | ||
↳ | com.pdftron.pdf.utils.FileInfoManager | |
↳ | com.pdftron.pdf.utils.RecentFilesManager |
Singleton class to manage recent files
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MAX_NUM_RECENT_FILES | The maximum number of files that can be added to recent list |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clearFiles(Context context)
Removes all files from the repository.
| ||||||||||
static RecentFilesManager | getInstance() | ||||||||||
boolean |
removeFile(Context context, FileInfo fileToRemove)
Removes the specified file from the repository.
| ||||||||||
List<FileInfo> |
removeFiles(Context context, List<FileInfo> filesToRemove)
Removes the specified files from the repository.
| ||||||||||
boolean |
updateFile(Context context, FileInfo oldFile, FileInfo newFile)
Updates the file in the repository.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.utils.FileInfoManager
| |||||||||||
From class
java.lang.Object
|
The maximum number of files that can be added to recent list
Removes all files from the repository.
context | The context |
---|
Removes the specified file from the repository.
context | The context |
---|---|
fileToRemove | The file to be removed |
Removes the specified files from the repository.
context | The context |
---|---|
filesToRemove | The list of files to be removed |
Updates the file in the repository.
context | The context |
---|---|
oldFile | The old file info |
newFile | The new file info |