IosFilePicker

iOS FilePicker. Calf's file-picker/file-saver launchers are @Composable — like IosDocumentScanner's VisionKit flow, they must be presented from live Compose UI, which this headless module has no hook into. Mirroring AndroidFilePicker, the host's Compose layer wires pickBridge/saveBridge to the real launchers; with no bridge registered this degrades to reporting no file, the same truthful-no-op fallback IosDocumentScanner uses.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var pickBridge: suspend () -> KmpFile??
Link copied to clipboard
var saveBridge: suspend (fileName: String, bytes: ByteArray) -> KmpFile??

Functions

Link copied to clipboard
open suspend override fun pickFile(): ByteArray?

Prompts the user to pick a file; null if cancelled, unavailable, or no host UI has wired the picker.

Link copied to clipboard
open suspend override fun saveFile(fileName: String, bytes: ByteArray): Boolean

Prompts the user to choose a save location and writes bytes there; true on success.