Class Overview
Singleton class to manage recent files
Summary
[Expand]
Inherited Methods |
From class
com.pdftron.pdf.utils.FileInfoManager
void
|
addFile(Context context, FileInfo fileInfo)
Adds the specified file into the repository.
|
void
|
clearFiles(Context context)
Removes all files from the repository.
|
boolean
|
containsFile(Context context, FileInfo fileInfo)
Checks whether the specified file exists in the repository.
|
FileInfo
|
getFile(Context context, FileInfo fileInfo)
Returns the file in the repository that equals to the specified file.
|
FileInfo
|
getFile(Context context, int index)
Returns the n'th file added into the repository.
|
List<FileInfo>
|
getFiles(Context context)
Returns all files in the repository
|
boolean
|
isEmpty(Context context)
Checks whether there is any file in the repository.
|
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.
|
void
|
saveFiles(Context context, List<FileInfo> files)
Saves the specified files into the repository.
|
int
|
size(Context context)
Returns the number of files in the repository.
|
boolean
|
updateFile(Context context, FileInfo oldFile, FileInfo newFile)
Updates the file in the repository.
|
void
|
updateFile(Context context, FileInfo fileInfo)
Updates the information of the specified file in the repository.
|
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
int
MAX_NUM_RECENT_FILES
The maximum number of files that can be added to recent list
Constant Value:
50
(0x00000032)
Public Methods
public
void
clearFiles
(Context context)
Removes all files from the repository.
public
boolean
removeFile
(Context context, FileInfo fileToRemove)
Removes the specified file from the repository.
Parameters
context |
The context |
fileToRemove |
The file to be removed |
Returns
- True if the specified file was in the repository and removed successfully
public
List<FileInfo>
removeFiles
(Context context, List<FileInfo> filesToRemove)
Removes the specified files from the repository.
Parameters
context |
The context |
filesToRemove |
The list of files to be removed |
Returns
- The list of files that were in the repository and removed successfully
public
boolean
updateFile
(Context context, FileInfo oldFile, FileInfo newFile)
Updates the file in the repository.
Parameters
context |
The context |
oldFile |
The old file info |
newFile |
The new file info |
Returns
- True if the file info was updated successfully