DefaultDocumentSharingController

Constructors

Link copied to clipboard
constructor(context: Context)

Creates a default document controller to handle the document sharing process.

constructor(context: Context, shareAction: ShareAction)

Creates a default document controller to handle the document sharing process.

constructor(context: Context, shareTarget: ShareTarget)

Creates a default document controller to handle the document sharing process.

Properties

Link copied to clipboard

The share action to perform when sharing the document (e.g., send, view).

Link copied to clipboard

The specific target application for sharing, or null to show a chooser.

Functions

Link copied to clipboard
open override fun cancelSharing()

Cancels sharing process.

Link copied to clipboard
open override fun onDetach()

Called when the controller is no longer attached to its activity (i.e. during configuration change).

Link copied to clipboard
open override fun onSharingError()

Called when error occurred during document preparation for sharing.

Link copied to clipboard
open override fun onSharingFinished(shareUri: Uri)

Called when shared document is prepared.

Link copied to clipboard
open override fun onSharingProgress(processorProgress: PdfProcessor.ProcessorProgress)

Called when processing progress has been updated.

Link copied to clipboard
open override fun onSharingStarted(shareDocumentJob: Job)

Called when DocumentSharingManager starts processing document for sharing.