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 stored under fileName in the client's own file storage. Does not consume incomingData. Dispatches onSuccess (no data) when the deletion completed; onFailure (carrying the Throwable, logged) when it failed.
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.
Reads the file, decodes it as JSON, and delivers it as Map<String, AnySerializable?>.
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.
The user can select a single file.
Allows the user to pick video files only.