Package-level declarations
Functions
Reads the whole file into memory and delivers it as a ByteArray.
Reads the whole file into memory and delivers it as a base64-encoded String.
Deletes the file or files selected by target from the client's own file storage. Does not consume incomingData. With multipleFiles every file is attempted even after one fails. Dispatches onSuccess (no data) when every deletion completed; onFailure once, after all were attempted, when at least one failed (carrying the first Throwable; every error is logged).
Allows the user to pick files matching the given MIME types or extensions.
Delivers a chunked Flow<ByteArray>, without ever holding the full file in memory.
Reads the file stored under fileName from the client's own file storage and emits its content downstream, shaped by outputType. Does not consume incomingData. Dispatches onSuccess (carrying the content, shaped by outputType) when the file was read; onFailure (carrying the Throwable, logged) when the read failed, no file exists under fileName, or mapObject() decoding fails.
Allows the user to pick images or videos.
Allows the user to pick image files only.
Lists the files directly inside directory in the client's own file storage; subdirectories and the files inside them are skipped. Does not consume incomingData. Dispatches onSuccess carrying the List<String> of file paths when the directory holds at least one file — each path is relative to the storage root, so it can be passed straight to GetFile/DeleteFiles as fileName; onEmptyDir (no data) when the directory holds no files; onFailure (carrying the Throwable, logged) when the directory doesn't exist (DirNotFoundException) or the listing failed.
Reads the file, decodes it as JSON, and delivers it as Map<String, AnySerializable?>.
Deletes every file in fileNames.
Opens the platform file picker and emits the chosen file downstream, shaped by outputType. fileType restricts what can be picked; pickMode currently only offers a single selection. Does not consume incomingData. Dispatches onSuccess (carrying the content, shaped by outputType) when a file was picked and read; onCancelled (no data) when the user dismisses the picker without choosing a file; onFailure (carrying the thrown exception) when mapObject() decoding fails or the picker itself throws.
Delivers a reference to the file (PlatformFile) without reading its contents.
Writes incomingData — required, and must be a ByteArray — to fileName in the client's own file storage. When overrideIfExists is false, the runner first checks fileName and refuses to write if something is already there. Dispatches onSuccess (no data) when the file was written; onFailure (carrying the thrown exception, logged) when incomingData is missing or not a ByteArray, when overrideIfExists is false and the file already exists, or when the write itself fails.
Deletes the one file stored under fileName.
The user can select a single file.
Allows the user to pick video files only.