java.lang.Object | ||
↳ | DialogFragment | |
↳ | com.pdftron.demo.dialog.FilePickerDialogFragment |
A multi-purpose file picker that allows picking folder and file from both internal storage and SD card (if permission is granted).
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | FilePickerDialogFragment.ExternalFolderListener | ||||||||||
interface | FilePickerDialogFragment.LocalFolderListener | ||||||||||
interface | FilePickerDialogFragment.MultipleFilesListener | ||||||||||
interface | FilePickerDialogFragment.SingleFileListener |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | VIEW_MODE_EXTERNAL | ||||||||||
int | VIEW_MODE_FAVORITE | ||||||||||
int | VIEW_MODE_LOCAL | ||||||||||
int | VIEW_MODE_RECENT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FilePickerDialogFragment() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Bundle | buildBundle(int requestCode, int dialogTitleRes, File startupFolder, Uri startupFolderUri, Object customObject, boolean isForAppend) | ||||||||||
String | buildPath(String rootName) | ||||||||||
void | cancelAllThumbRequests() | ||||||||||
static FilePickerDialogFragment | newInstance(int requestCode, int dialogTitleRes, File startupFolder, Uri startupFolderUri, Object customObject, boolean isForAppend) | ||||||||||
static FilePickerDialogFragment | newInstance(int requestCode, int dialogTitleRes, File startupFolder, Uri startupFolderUri, Object customObject) | ||||||||||
static FilePickerDialogFragment | newInstance(int requestCode, int dialogTitleRes, File startupFolder) | ||||||||||
static FilePickerDialogFragment | newInstance(int requestCode, Uri startupFolderUri) | ||||||||||
static FilePickerDialogFragment | newInstance(int requestCode, File startupFolder) | ||||||||||
static FilePickerDialogFragment | newInstance(int requestCode, int dialogTitleRes, Uri startupFolderUri) | ||||||||||
void | onActivityResult(int requestCode, int resultCode, Intent data) | ||||||||||
void | onCreate(Bundle savedInstanceState) | ||||||||||
Dialog | onCreateDialog(Bundle savedInstanceState) | ||||||||||
void |
onCurrentRootRemoved()
Called when the current root is no longer available
| ||||||||||
void | onLowMemory() | ||||||||||
boolean | onMenuItemClick(MenuItem item) | ||||||||||
void | onPause() | ||||||||||
void |
onPopulateFolderTaskFinished()
Called when the task has been terminated.
| ||||||||||
void |
onPopulateFolderTaskProgressUpdated(File currentFolder)
Called when the task has updated file info list,
after this callback the recursive folders/files will be populated.
| ||||||||||
void |
onPopulateFolderTaskStarted()
Called when the task has started.
| ||||||||||
void |
onPopulateSdFilesTaskFinished()
Called when the task has been terminated.
| ||||||||||
void |
onPopulateSdFilesTaskProgressUpdated(List<ExternalFileInfo> rootList)
Called when the task has updated file info list.
| ||||||||||
void |
onPopulateSdFilesTaskProgressUpdated(ExternalFileInfo savedRoot, ExternalFileInfo savedFolder, ExternalFileInfo savedLeaf)
Called when the task has built special saved folder.
| ||||||||||
void |
onPopulateSdFilesTaskStarted()
Called when the task has started.
| ||||||||||
void | onResume() | ||||||||||
void | onStart() | ||||||||||
void | setExternalFolderListener(FilePickerDialogFragment.ExternalFolderListener listener) | ||||||||||
void | setLocalFolderListener(FilePickerDialogFragment.LocalFolderListener listener) | ||||||||||
void | setMultipleFilesListener(FilePickerDialogFragment.MultipleFilesListener listener) | ||||||||||
void | setSingleFileListener(FilePickerDialogFragment.SingleFileListener listener) | ||||||||||
void | updateTitle() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pdftron.demo.asynctask.PopulateFolderTask.Callback
| |||||||||||
From interface
com.pdftron.demo.asynctask.PopulateSdFolderTask.Callback
|
Called when the current root is no longer available
Called when the task has been terminated.
Called when the task has updated file info list, after this callback the recursive folders/files will be populated.
currentFolder | The current folder |
---|
Called when the task has started.
Called when the task has been terminated.
Called when the task has updated file info list.
rootList | The populated root list |
---|
Called when the task has built special saved folder.
savedRoot | The saved root |
---|---|
savedFolder | The saved folder |
savedLeaf | The saved leaf |
Called when the task has started.