| java.lang.Object | |
| ↳ | com.pspdfkit.document.sharing.DocumentSharingProviderProcessor |
Prepares data in DocumentSharingProvider for sharing via Android's share framework.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | DocumentSharingProviderProcessor.PdfProcessorProgressListener | Listener for PdfProcessor progress updates used when preparing PdfDocument for sharing. |
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DocumentSharingProviderProcessor() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static Single<Uri> |
prepareBitmapForSharing(Context context, Bitmap bitmap)
Writes bitmap to directory backed by
DocumentSharingProvider. | ||||||||||
| static Single<Uri> |
prepareBitmapForSharing(Context context, Bitmap bitmap, Bitmap.CompressFormat compressFormat, int compressQuality, String fileName)
Writes bitmap to directory backed by
DocumentSharingProvider. | ||||||||||
| static Single<Uri> |
prepareDocumentForSharing(Context context, PdfDocument document, PdfProcessorTask processorTask, String documentName)
Prepares document for sharing via Android share framework.
| ||||||||||
| static Single<Uri> |
prepareDocumentForSharing(Context context, PdfDocument document, String documentName)
Prepares document for sharing via Android share framework.
| ||||||||||
| static Single<Uri> |
prepareDocumentForSharing(Context context, PdfDocument document, PdfProcessorTask processorTask, String documentName, DocumentSharingProviderProcessor.PdfProcessorProgressListener progressListener)
Prepares document for sharing via Android share framework.
| ||||||||||
| static Single<Uri> |
prepareEmbeddedFileForSharing(Context context, EmbeddedFile embeddedFile)
Extracts embedded file to directory backed by
DocumentSharingProvider. | ||||||||||
| static Single<Uri> |
prepareFileForSharing(Context context, DataProvider fileDataProvider, String fileName)
Writes file to directory backed by
DocumentSharingProvider. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Writes bitmap to directory backed by DocumentSharingProvider.
| context | Context to use. |
|---|---|
| bitmap | Bitmap that should be compressed and saved into file. |
Uri that can be used for sharing the bitmap file to other apps or an error if the bitmap could not be exported.
Writes bitmap to directory backed by DocumentSharingProvider.
| context | Context to use. |
|---|---|
| bitmap | Bitmap that should be compressed and saved into file. |
| compressFormat | The format of the compressed image. |
| compressQuality | The quality that compressor should use. Must be [0,100]. 0 means compress for small size, 100 means compress for max quality. Some lossless formats (for example PNG), ignore the quality setting. |
| fileName | Optional file name used for sharing (this is the shared file name as seen by other apps). |
Uri that can be used for sharing the bitmap file to other apps or an error if the bitmap could not be exported.
Prepares document for sharing via Android share framework.
| 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). |
Uri that can be used for sharing the document to other apps or an error if the document could not be exported for sharing.
Prepares document for sharing via Android share framework.
| 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). |
Uri that can be used for sharing the document to other apps or an error if the document could not be exported for sharing.
Prepares document for sharing via Android share framework.
| 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. |
Uri that can be used for sharing the document to other apps or an error if the document could not be exported for sharing.
Extracts embedded file to directory backed by DocumentSharingProvider.
| embeddedFile | Embedded file we want to extract. |
|---|
Uri that can be used for sharing the embedded file to other apps or an error if the file could not be exported.
Writes file to directory backed by DocumentSharingProvider.
| context | Context to use. |
|---|---|
| fileDataProvider | Data provider with file data. |
| fileName | Optional file name used for sharing (this is the shared file name as seen by other apps). |
Uri that can be used for sharing the file to other apps or an error if the file could not be exported.