FilePickerDialog

class FilePickerDialog(val activity: BaseAbstractActivity, var currPath: String = activity.config.homeFolder, val pickFile: Boolean = true, val showFAB: Boolean = false, isMovingOperation: Boolean = false, hideAction: HideAction = HideAction.NONE, val finishOnBackPress: Boolean = false, val callbackNegative: () -> Unit? = null, val callback: (pickedPath: String) -> Unit) : Breadcrumbs.BreadcrumbsListener

The only filepicker constructor with a couple optional parameters

Parameters

activity

has to be activity to avoid some Theme.AppCompat issues

currPath

initial path of the dialog, defaults to the external storage

pickFile

toggle used to determine if we are picking a file or a folder

showFAB

toggle the displaying of a Floating Action Button for creating new folders

callback

the callback used for returning the selected file/folder

Constructors

Link copied to clipboard
constructor(activity: BaseAbstractActivity, currPath: String = activity.config.homeFolder, pickFile: Boolean = true, showFAB: Boolean = false, isMovingOperation: Boolean = false, hideAction: HideAction = HideAction.NONE, finishOnBackPress: Boolean = false, callbackNegative: () -> Unit? = null, callback: (pickedPath: String) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val callback: (pickedPath: String) -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun breadcrumbClicked(id: Int)