# PdfView.OnFirstContentLoadListener

Artifact: [androidx.pdf:pdf-viewer](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/view/PdfView.kt+class:androidx.pdf.view.PdfView.OnFirstContentLoadListener) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public fun interface PdfView.OnFirstContentLoadListener
```

<br />

*** ** * ** ***

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` | `@https://developer.android.com/reference/androidx/annotation/MainThread https://developer.android.com/reference/androidx/pdf/view/PdfView.OnFirstContentLoadListener#onFirstContentLoad()()` Called when the content of the document has been loaded for the first time. |

## Public methods

### onFirstContentLoad

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
@MainThread
abstract void onFirstContentLoad()
```

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