prepareEmbeddedFileForSharing

open fun prepareEmbeddedFileForSharing(@NonNull context: Context, @NonNull embeddedFile: EmbeddedFile): Single<Uri>

Extracts embedded file to directory backed by DocumentSharingProvider.

Scheduler:
Method does not operate by default on a particular Scheduler.

Return

Single emitting Uri that can be used for sharing the embedded file to other apps or an error if the file could not be exported.

Parameters

embeddedFile

Embedded file we want to extract.