Package com.pspdfkit.document.sharing
Class DocumentSharingController
-
- All Implemented Interfaces:
public abstract class DocumentSharingController
Base class for sharing controllers. These controllers can be used to customize sharing process in DocumentSharingManager.
-
-
Method Summary
Modifier and Type Method Description void
onSharingStarted(@NonNull() Disposable shareDocumentDisposable)
Called when DocumentSharingManager starts processing document for sharing. void
onSharingFinished(@NonNull() Uri shareUri)
Called when shared document is prepared. void
onSharingError()
Called when error occurred during document preparation for sharing. void
onSharingProgress(@NonNull() PdfProcessor.ProcessorProgress processorProgress)
Called when processing progress has been updated. void
cancelSharing()
Cancels sharing process. void
onAttach(@NonNull() 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. -
-
Method Detail
-
onSharingStarted
void onSharingStarted(@NonNull() Disposable shareDocumentDisposable)
Called when DocumentSharingManager starts processing document for sharing.
-
onSharingFinished
void onSharingFinished(@NonNull() Uri shareUri)
Called when shared document is prepared.
- Parameters:
shareUri
- Shared document Uri.
-
onSharingError
void onSharingError()
Called when error occurred during document preparation for sharing.
-
onSharingProgress
void onSharingProgress(@NonNull() PdfProcessor.ProcessorProgress processorProgress)
Called when processing progress has been updated.
-
cancelSharing
void cancelSharing()
Cancels sharing process.
-
onAttach
void onAttach(@NonNull() Context context)
Called when sharing controller is attached to its activity.
- Parameters:
context
- Context of the activity that controller is attached to.
-
onDetach
void onDetach()
Called when the controller is no longer attached to its activity (i.e. during configuration change).
-
-
-
-