public abstract class

DocumentSharingController

extends Object
java.lang.Object
   ↳ com.pspdfkit.document.sharing.DocumentSharingController
Known Direct Subclasses

Class Overview

Base class for sharing controllers. These controllers can be used to customize sharing process in DocumentSharingManager.

Summary

Protected 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

Protected Constructors

protected DocumentSharingController (Context context)

Creates a controller for document sharing process.

Parameters
context Context of the calling component.

Public Methods

public void cancelSharing ()

Cancels sharing process.

public void onAttach (Context context)

Called when sharing controller is attached to its activity.

Parameters
context Context of the activity that controller is attached to.

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 Context getContext ()

protected abstract void onDocumentPrepared (Uri shareUri)

Called when document is prepared for sharing.

Parameters
shareUri Shared document Uri.