FileBrowserActions

data class FileBrowserActions(val onOpenPath: (root: String, relativePath: String) -> Unit, val onPreview: (root: String, relativePath: String) -> Unit, val onClosePreview: () -> Unit, val onDelete: (root: String, relativePath: String) -> Unit, val onShare: (root: String, relativePath: String) -> Unit = { _, _ -> })

Grouped callbacks for the read-only-by-default app file browser. Delete and share are both capability-gated -- share hands the caller a real, unredacted file, the same reasoning that gates the browser's download route behind the files capability.

Constructors

Link copied to clipboard
constructor(onOpenPath: (root: String, relativePath: String) -> Unit, onPreview: (root: String, relativePath: String) -> Unit, onClosePreview: () -> Unit, onDelete: (root: String, relativePath: String) -> Unit, onShare: (root: String, relativePath: String) -> Unit = { _, _ -> })

Properties

Link copied to clipboard
val onClosePreview: () -> Unit
Link copied to clipboard
val onDelete: (root: String, relativePath: String) -> Unit
Link copied to clipboard
val onOpenPath: (root: String, relativePath: String) -> Unit
Link copied to clipboard
val onPreview: (root: String, relativePath: String) -> Unit
Link copied to clipboard
val onShare: (root: String, relativePath: String) -> Unit