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 . | ||||||||||
static Single<Uri> |
prepareSoundAnnotationForSharing(Context context, SoundAnnotation soundAnnotation)
Extracts audio data embedded in a
SoundAnnotation to a directory backed by DocumentSharingProvider . | ||||||||||
static Single<Uri> |
prepareSoundAnnotationForSharing(Context context, SoundAnnotation soundAnnotation, String fileName)
Extracts audio data embedded in a
SoundAnnotation to a directory backed by DocumentSharingProvider . | ||||||||||
static boolean |
soundAnnotationSupportsSharing(SoundAnnotation soundAnnotation)
Checks whether sound annotation can be shared: is attached to document and has audio data in supported format
(i.e.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
Extracts audio data embedded in a SoundAnnotation
to a directory backed by DocumentSharingProvider
. Audio data is written as a WAV file.
soundAnnotation | Sound annotation that should be shared. |
---|
Uri
that can be used for sharing the sound annotation to other apps or an error
if the audio data could not be exported.
Extracts audio data embedded in a SoundAnnotation
to a directory backed by DocumentSharingProvider
.
Audio data is written as a WAV file.
soundAnnotation | Sound annotation that should be shared. |
---|---|
fileName | Optional file name used for sharing the wave file (this is the shared file name as seen by other apps). |
Uri
that can be used for sharing the sound annotation to other apps or an error
if the audio data could not be exported.
Checks whether sound annotation can be shared: is attached to document and has audio data in supported format
(i.e. with encoding SIGNED
).
soundAnnotation | Sound annotation that should be shared. |
---|
True
when sound annotation has audio data that can be shared.