prepareDocumentForSharing

open fun prepareDocumentForSharing(@NonNull context: Context, @NonNull document: PdfDocument, @NonNull processorTask: PdfProcessorTask, @Nullable documentName: String): Single<Uri>

Prepares document for sharing via Android share framework.

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

Return

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

Parameters

document

Document we are going to share.

processorTask

Task to use for processing the document before sharing.

documentName

Optional document name used for sharing (this is the shared document file name as seen by other apps).


Prepares document for sharing via Android share framework.

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

Return

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

Parameters

document

Document that should be shared.

processorTask

Task to use for processing the document before sharing.

documentName

Optional document name used for sharing (this is the shared document file name as seen by other apps).

progressListener

Optional listener for PdfProcessor progress.


open fun prepareDocumentForSharing(@NonNull context: Context, @NonNull document: PdfDocument, @Nullable documentName: String): Single<Uri>

Prepares document for sharing via Android share framework.

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

Return

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

Parameters

document

Document that should be shared.

documentName

Optional document name used for sharing (this is the shared document file name as seen by other apps).