| java.lang.Object | |
| ↳ | com.pspdfkit.document.sharing.DocumentSharingController |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Base class for sharing controllers. These controllers can be used to customize
sharing process in DocumentSharingManager.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
DocumentSharingController(Context context)
Creates a controller for document sharing process.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
cancelSharing()
Cancels sharing process.
| ||||||||||
| void |
onAttach(Context context)
Called when sharing controller is attached to its activity.
| ||||||||||
| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Context | getContext() | ||||||||||
| abstract void |
onDocumentPrepared(Uri shareUri)
Called when document is prepared for sharing.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a controller for document sharing process.
| context | Context of the calling component. |
|---|
Cancels sharing process.
Called when sharing controller is attached to its activity.
| context | Context of the activity that controller is attached 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.
Called when document is prepared for sharing.
| shareUri | Shared document Uri.
|
|---|