DocumentProvider

uapmd::IDocumentProvider. Picks complete from tick, so a host ticks the provider on every UI update, as uapmd-app does. Callbacks are dispatched on the calling thread or the platform's main thread.

Inheritors

AndroidDocumentProvider
JsDocumentProvider
JvmDocumentProvider
NativeDocumentProvider
WasmJsDocumentProvider

Properties

Link copied to clipboard

Whether pickFolder yields a path that stays valid after the call.

Functions

Link copied to clipboard
abstract fun listFolderDocuments(token: String, callback: (FolderPickResult) -> Unit)

Re-reads a folder picked earlier, named by its FolderPickResult.token.

Link copied to clipboard
abstract fun pickFolder(callback: (FolderPickResult) -> Unit)
Link copied to clipboard
abstract fun pickOpenDocuments(filters: List<DocumentFilter>, allowMultiple: Boolean, callback: (DocumentPickResult) -> Unit)
Link copied to clipboard
abstract fun readDocument(handle: DocumentHandle, callback: (DocumentIOResult, ByteArray) -> Unit)
Link copied to clipboard
abstract fun releaseFolder(token: String)

Gives up a folder token, releasing any grant behind it.

Link copied to clipboard
abstract fun tick()