java.lang.Object | ||
↳ | com.pspdfkit.document.sharing.DocumentSharingController | |
↳ | com.pspdfkit.document.sharing.DefaultDocumentSharingController |
Default implementation of DocumentSharingController
.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a default document controller to handle the document sharing process.
context | Activity context. |
---|
Creates a default document controller to handle the document sharing process.
context | Activity context. |
---|---|
shareAction | Share action handled by this controller. |
Creates a default document controller to handle the document sharing process.
context | Activity context. |
---|---|
shareTarget | Target of the share action. |
Cancels sharing process.
Returns share action handled by this controller.
Returns share target that this controller is sharing to.
Called when the controller is no longer attached to its activity (i.e. during configuration change).
Called when error occurred during document preparation for sharing.
Called when shared document is prepared.
shareUri | Shared document Uri .
|
---|
Called when processing progress has been updated.
Called when DocumentSharingManager
starts processing document for sharing.
Shows toast informing user that there are no applications for sharing.
Called when document is prepared for sharing.
shareUri | Shared document Uri .
|
---|