instant Listeners
fun instantListeners(onAuthenticationFailed: (InstantPdfDocument, InstantException) -> Unit? = null, onAuthenticationFinished: (InstantPdfDocument, String) -> Unit? = null, onSyncStarted: (InstantPdfDocument) -> Unit? = null, onSyncError: (InstantPdfDocument, InstantException) -> Unit? = null, onSyncFinished: (InstantPdfDocument) -> Unit? = null, onDocumentStateChanged: (InstantPdfDocument, InstantDocumentState) -> Unit? = null, onDocumentCorrupted: (InstantPdfDocument) -> Unit? = null): InstantDocumentListener
Creates an InstantDocumentListener with configurable callbacks for Instant document events.
Return
A configured InstantDocumentListener instance.
Parameters
on Authentication Failed
Called when Instant authentication fails.
on Authentication Finished
Called when Instant authentication completes.
on Sync Started
Called when annotation sync starts.
on Sync Error
Called when annotation sync fails.
on Sync Finished
Called when annotation sync completes.
on Document State Changed
Called when the document state changes.
on Document Corrupted
Called when the document is detected as corrupted.