GetFileStreamingUseCase

Reads a file from the client's own private file storage as a chunked Flow, without loading it fully into memory — backs GetFile's flowOfBytes() output type, meant for large files. Reachable via get<GetFileStreamingUseCase>().

Constructors

Link copied to clipboard
constructor(repository: MosaicRepository)

Types

Link copied to clipboard
data class Params(val fileName: String)

Functions

Link copied to clipboard
open suspend override fun execute(params: GetFileStreamingUseCase.Params): Result<Flow<ByteArray>?>
Link copied to clipboard
suspend operator fun invoke(params: GetFileStreamingUseCase.Params): Result<Flow<ByteArray>?>