FilePicker

interface FilePicker

A file picker for retrieving a destination Uri. getDestinationUri can be called whenever access to an Uri is required, for example when trying to save a PDF document to a random location. Various implementations of file pickers can exist, such as default Android SAF that shows a file browser for selecting a destination file prior to creating the exported PDFs. One usage of the FilePicker is the selection of a destination Uri for saving documents when editing using the PdfDocumentEditor.

Functions

Link copied to clipboard
open fun getDestinationUri(@NonNull action: String): Maybe<Uri>
abstract fun getDestinationUri(@NonNull action: String, @Nullable fileName: String): Maybe<Uri>
The file picker opens a default Android SAF by an intent with a given action.