writeBitmapToShareableFile

suspend fun writeBitmapToShareableFile(context: Context, bitmap: Bitmap): Result<Uri>

Writes a bitmap to a shareable file in the cache directory and returns a shareable URI.

Return

A Result containing the Uri of the shareable file, or an error if the operation fails.

Parameters

context

The Android context.

bitmap

The bitmap to write.