prepareEmbeddedFileForSharing

suspend fun prepareEmbeddedFileForSharing(context: Context, embeddedFile: EmbeddedFile): Uri

Extracts embedded file to directory backed by DocumentSharingProvider.

Return

Uri that can be used for sharing the embedded file to other apps.

Parameters

embeddedFile

Embedded file we want to extract.

Throws

if the file could not be exported.