getShareableUriForAttachment

suspend fun getShareableUriForAttachment(context: Context, attachment: Attachment): Result<Uri>

Gets a shareable URI for an attachment that is already cached. This method does not download the attachment if it's not cached.

Return

A Result containing the Uri of the cached file, or an error if the file is not cached.

Parameters

context

The Android context.

attachment

The attachment to get the URI for.