public class

RecentFilesManager

extends FileInfoManager
java.lang.Object
   ↳ com.pdftron.pdf.utils.FileInfoManager
     ↳ com.pdftron.pdf.utils.RecentFilesManager

Class Overview

Singleton class to manage recent files

Summary

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

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.

Parameters
context The context

public static RecentFilesManager getInstance ()

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