DocumentSharingProviderProcessor

Prepares data in DocumentSharingProvider for sharing via Android's share framework.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Listener for PdfProcessor progress updates used when preparing PdfDocument for sharing.

Functions

Link copied to clipboard
open fun prepareBitmapForSharing(@NonNull context: Context, @NonNull bitmap: Bitmap): Single<Uri>
open fun prepareBitmapForSharing(@NonNull context: Context, @NonNull bitmap: Bitmap, @NonNull compressFormat: Bitmap.CompressFormat, compressQuality: Int, @Nullable fileName: String): Single<Uri>
Writes bitmap to directory backed by DocumentSharingProvider.
Link copied to clipboard
open fun prepareDocumentForSharing(@NonNull context: Context, @NonNull document: PdfDocument, @Nullable documentName: String): Single<Uri>
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.
Link copied to clipboard
open fun prepareEmbeddedFileForSharing(@NonNull context: Context, @NonNull embeddedFile: EmbeddedFile): Single<Uri>
Extracts embedded file to directory backed by DocumentSharingProvider.
Link copied to clipboard
open fun prepareFileForSharing(@NonNull context: Context, @NonNull fileDataProvider: DataProvider, @Nullable fileName: String): Single<Uri>
Writes file to directory backed by DocumentSharingProvider.
Link copied to clipboard
open fun prepareSoundAnnotationForSharing(@NonNull context: Context, @NonNull soundAnnotation: SoundAnnotation): Single<Uri>
open fun prepareSoundAnnotationForSharing(@NonNull context: Context, @NonNull soundAnnotation: SoundAnnotation, @Nullable fileName: String): Single<Uri>
Extracts audio data embedded in a SoundAnnotation to a directory backed by .
Link copied to clipboard
Checks whether sound annotation can be shared: is attached to document and has audio data in supported format (i.e.