shareDocument

Share document using given action with optional sharing options for processing.

Return

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

Parameters

document

Document to share.

shareAction

Share action that will get executed.


open fun shareDocument(@NonNull context: Context, @NonNull document: PdfDocument, @NonNull shareAction: ShareAction, @Nullable 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 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 PdfProcessor task that will get performed before sharing. Works only when license allows creating new documents.


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.


open fun shareDocument(@NonNull context: Context, @NonNull document: PdfDocument, @NonNull shareTarget: ShareTarget, @Nullable shareOptions: SharingOptions): DocumentSharingController

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

When license allows creating new documents, shareOptions are used to configure 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.

shareTarget

Target of the share action.

shareOptions

Options used to configure PdfProcessor task that will get performed before sharing. Works only when license allows creating new documents.


Share document using given action 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.


Share document using given action with optional sharing options for processing.

When license allows creating new documents, shareOptions are used to configure PdfProcessor task that will get performed before sharing.

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 PdfProcessor task that will get performed before sharing. Works only when license allows creating new documents.