shareDocument

Share document using given action.

Return

Sharing controller that can be used to cancel the sharing process.

Parameters

document

Document to share.

shareAction

Share action that will get executed.


fun shareDocument(context: Context, document: PdfDocument, shareAction: ShareAction, shareOptions: SharingOptions?): DocumentSharingController

Share document using given action with optional sharing options for processing. When license allows creating new documents, shareOptions are used to configure the PdfProcessor task that will get performed before sharing.

Return

Sharing controller that can be used to cancel the sharing process.

Parameters

document

Document to share.

shareAction

Share action that will get executed.

shareOptions

Options used to configure the PdfProcessor task performed before sharing.


Share document to single share target.

Return

Sharing controller that can be used to cancel the sharing process.

Parameters

document

Document to share.

shareTarget

Target of the share action.


fun shareDocument(context: Context, document: PdfDocument, shareTarget: ShareTarget, shareOptions: SharingOptions?): DocumentSharingController

Share document to single share target with optional sharing options for processing.

Return

Sharing controller that can be used to cancel the sharing process.

Parameters

document

Document to share.

shareTarget

Target of the share action.

shareOptions

Options used to configure the PdfProcessor task performed before sharing.


Share document using the given controller.

Return

Sharing controller that can be used to cancel the sharing process.

Parameters

controller

Controller to use for sharing.

document

Document to share.


Share document using the given controller with optional sharing options for processing.

Return

Sharing controller that can be used to cancel the sharing process.

Parameters

controller

Controller to use for sharing.

document

Document to share.

shareOptions

Options used to configure the PdfProcessor task performed before sharing.