# PdfDocument.OnEditAppliedListener

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

*** ** * ** ***


```
@ExperimentalPdfApi
interface PdfDocument.OnEditAppliedListener
```

<br />

*** ** * ** ***

Interface definition for a callback that notifies when an edit is applied using the `https://developer.android.com/reference/kotlin/androidx/pdf/EditablePdfDocument#applyEdits(androidx.pdf.EditsDraft)` method.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.OnEditAppliedListener#onEditApplied(kotlin.Int,kotlin.String)(pageNum: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, editId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Called when an edit is applied on the document. |

## Public functions

### onEditApplied

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

```
fun onEditApplied(pageNum: Int, editId: String): Unit
```

Called when an edit is applied on the document. The order of the callback is preserved according to the order of the provided list of `https://developer.android.com/reference/kotlin/androidx/pdf/EditsDraft`.

| Parameters |
|---|---|
| `pageNum: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | page number where the annotation is applied. |
| `editId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The unique identifier of the target created or modified by this edit (e.g., an annotation ID) |