public class

DefaultDocumentSharingController

extends DocumentSharingController
java.lang.Object
   ↳ com.pspdfkit.document.sharing.DocumentSharingController
     ↳ com.pspdfkit.document.sharing.DefaultDocumentSharingController

Class Overview

Default implementation of DocumentSharingController.

Summary

Public Constructors
DefaultDocumentSharingController(Context context)
Creates a default document controller to handle the document sharing process.
DefaultDocumentSharingController(Context context, ShareAction shareAction)
Creates a default document controller to handle the document sharing process.
DefaultDocumentSharingController(Context context, ShareTarget shareTarget)
Creates a default document controller to handle the document sharing process.
Public Methods
void cancelSharing()
Cancels sharing process.
ShareAction getShareAction()
Returns share action handled by this controller.
ShareTarget getShareTarget()
Returns share target that this controller is sharing to.
void onDetach()
Called when the controller is no longer attached to its activity (i.e.
void onSharingError()
Called when error occurred during document preparation for sharing.
void onSharingFinished(Uri shareUri)
Called when shared document is prepared.
void onSharingProgress(PdfProcessor.ProcessorProgress processorProgress)
Called when processing progress has been updated.
void onSharingStarted(Disposable shareDocumentDisposable)
Called when DocumentSharingManager starts processing document for sharing.
Protected Methods
String getProgressDialogTitle()
Returns text used as sharing progress dialog title.
void notifyNoApplicationFoundForSharing()
Shows toast informing user that there are no applications for sharing.
void onDocumentPrepared(Uri shareUri)
Called when document is prepared for sharing.
[Expand]
Inherited Methods
From class com.pspdfkit.document.sharing.DocumentSharingController
From class java.lang.Object

Public Constructors

public DefaultDocumentSharingController (Context context)

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

Parameters
context Activity context.

public DefaultDocumentSharingController (Context context, ShareAction shareAction)

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

Parameters
context Activity context.
shareAction Share action handled by this controller.

public DefaultDocumentSharingController (Context context, ShareTarget shareTarget)

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

Parameters
context Activity context.
shareTarget Target of the share action.

Public Methods

public void cancelSharing ()

Cancels sharing process.

public ShareAction getShareAction ()

Returns share action handled by this controller.

Returns
  • Share action handled by this controller.

public ShareTarget getShareTarget ()

Returns share target that this controller is sharing to.

Returns
  • Target of the share or null if no target is specified.

public void onDetach ()

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

public void onSharingError ()

Called when error occurred during document preparation for sharing.

public void onSharingFinished (Uri shareUri)

Called when shared document is prepared.

Parameters
shareUri Shared document Uri.

public void onSharingProgress (PdfProcessor.ProcessorProgress processorProgress)

Called when processing progress has been updated.

public void onSharingStarted (Disposable shareDocumentDisposable)

Called when DocumentSharingManager starts processing document for sharing.

Protected Methods

protected String getProgressDialogTitle ()

Returns text used as sharing progress dialog title.

protected void notifyNoApplicationFoundForSharing ()

Shows toast informing user that there are no applications for sharing.

protected void onDocumentPrepared (Uri shareUri)

Called when document is prepared for sharing.

Parameters
shareUri Shared document Uri.