PdfView.OnFirstContentLoadListener


public fun interface PdfView.OnFirstContentLoadListener


Listener interface to receive a callback on the UI thread when the content of the PDF document has been loaded for the first time.

This callback is invoked on successful document load on current view instance and The state for this listener resets when view recreates (eg. due to configuration changes) or when a new document is set via the [pdfDocument] property. This callback indicates that the document is ready for user interaction and can be used for hiding loading indicators (like progress bars) or for logging initial page load metrics. If a fatal error prevents the content of the PDF from loading (e.g., file corruption), this listener will not be called.

Summary

Public methods

abstract void

Called when the content of the document has been loaded for the first time.

Public methods

onFirstContentLoad

Added in 1.0.0-alpha13
@MainThread
abstract void onFirstContentLoad()

Called when the content of the document has been loaded for the first time.