java.lang.Object | |
↳ | com.pspdfkit.instant.listeners.SimpleInstantDocumentListener |
Empty implementation of InstantDocumentListener
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SimpleInstantDocumentListener() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
onAuthenticationFailed(InstantPdfDocument instantDocument, InstantException error)
Called when authentication with Instant server has failed.
| ||||||||||
void |
onAuthenticationFinished(InstantPdfDocument instantDocument, String validJwt)
Called when authentication with Instant server has successfully finished.
| ||||||||||
void |
onDocumentCorrupted(InstantPdfDocument instantDocument)
Called when
InstantPdfDocument has detected data corruption. | ||||||||||
void |
onDocumentInvalidated(InstantPdfDocument instantPdfDocument)
Called when
InstantPdfDocument becomes invalid. | ||||||||||
void |
onDocumentStateChanged(InstantPdfDocument instantDocument, InstantDocumentState state)
Called when the document changes its state.
| ||||||||||
void |
onSyncError(InstantPdfDocument instantDocument, InstantException error)
Called when annotation sync has been finished with an error.
| ||||||||||
void |
onSyncFinished(InstantPdfDocument instantDocument)
Called when annotation sync has been finished successfully.
| ||||||||||
void |
onSyncStarted(InstantPdfDocument instantDocument)
Called when annotation sync has been started.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Called when authentication with Instant server has failed.
instantDocument | Document that we were authenticating for. |
---|---|
error | Authentication error. |
Called when authentication with Instant server has successfully finished.
instantDocument | Document that we were authenticating for. |
---|---|
validJwt | JWT that was used for this authentication request. |
Called when InstantPdfDocument
has detected data corruption.
Receiving this callback means any further interaction with the sender’s document are destined to fail. You can copy the document package aside for forensic purposes, but you will — eventually — have to purge its storage, and download it anew.
Because this situation means the document has become unusable, it will invalidate itself immediately after this method returns.
instantDocument | Document that has detected data corruption. |
---|
Called when InstantPdfDocument
becomes invalid. Any future instant operations on this
document will fail.
instantPdfDocument | Document that is becoming invalid. |
---|
Called when the document changes its state.
Note: After onSyncStarted(InstantPdfDocument)
, this method may be called multiple
times during the sync process.
instantDocument | Document which state has changed. |
---|---|
state | New document state. |
Called when annotation sync has been finished with an error.
The most likely reason is network failure REQUEST_FAILED
. Other
common reasons are expiration of your authentication token AUTHENTICATION_FAILED
, and cancellation USER_CANCELLED
.
instantDocument | Document that was syncing the annotations. |
---|---|
error | Error thrown while syncing annotations. |
Called when annotation sync has been finished successfully.
instantDocument | Document that was syncing the annotations. |
---|
Called when annotation sync has been started.
instantDocument | Document that is syncing the annotations. |
---|