PSPDFInstantClientDelegate

Objective-C

@protocol PSPDFInstantClientDelegate <NSObject>

Swift

protocol InstantClientDelegate : NSObjectProtocol

The delegate of a PSPDFInstantClient must adopt this protocol to be notified of download and authentication events.

Delegates that are interested in events around the sync cycle can also implement the optional methods listed in the “Sync Events” section. For a more detailed explanation of the sync cycle of a document and its possible states, please refer to the documentation on PSPDFInstantDocumentState.

If you need multiple observers or are only interested in the events of a single document, you can use the notifications posted by PSPDFInstantDocumentDescriptor.

Note

Important: All methods in this protocol will be called on a background thread!