StreamFileUtil
Functions
Link copied to clipboard
Deletes all the content contained within the Stream cache directory.
Link copied to clipboard
Link copied to clipboard
suspend fun writeFileToShareableFile(context: Context, attachment: Attachment): Result<Uri>
Content copied to clipboard
Hashes the links of given attachments and then tries to create a new file under that hash. If the file already exists checks that the full file has been written and shares it if it has, in other cases downloads the file and writes it.
Link copied to clipboard