FileStore

class FileStore(context: Context) : KoinComponent

FileStore file manager responsible for storing and providing info about files.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
fun downloadFile(fileUrl: String, inputStream: InputStream): String

Save file in cache

Link copied to clipboard
open override fun getKoin(): Koin
Link copied to clipboard
fun getMime(uri: Uri): String?

Return the MIME type of the given content URL.

Link copied to clipboard

return name of file

Link copied to clipboard
fun sizeInKb(file: File): Double

The function return size of the file in KB

Link copied to clipboard
fun writeTextToFile(filename: String, data: String): String

Write a file in cache