# 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
public interface PdfDocument.OnEditAppliedListener
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/pdf/PdfDocument.OnEditAppliedListener#onEditApplied(kotlin.Int,kotlin.String)(int pageNum, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html editId)` Called when an edit is applied on the document. |

## Public methods

### onEditApplied

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

```
abstract void onEditApplied(int pageNum, @NonNull String editId)
```

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/androidx/pdf/EditsDraft`.

| Parameters |
|---|---|
| `int pageNum` | page number where the annotation is applied. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html editId` | The unique identifier of the target created or modified by this edit (e.g., an annotation ID) |