# AnnotationsView.OnGestureClaimListener

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

*** ** * ** ***


```
interface AnnotationsView.OnGestureClaimListener
```

<br />

*** ** * ** ***

Callback interface for gesture coordination events.

These signals allow the host to coordinate the touch event stream between different simultaneous interactions.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/AnnotationsView.OnGestureClaimListener#onGestureAbandoned()()` Called when the view 'abandons' its interest in the current gesture. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/AnnotationsView.OnGestureClaimListener#onGestureClaimed()()` Called when the view 'claims' the current gesture stream. |

## Public functions

### onGestureAbandoned

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

```
fun onGestureAbandoned(): Unit
```

Called when the view 'abandons' its interest in the current gesture.

The host can use this signal to allow other interactions to continue exclusively.

### onGestureClaimed

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

```
fun onGestureClaimed(): Unit
```

Called when the view 'claims' the current gesture stream.

The host should typically use this signal to cancel any other 'shadow' or simultaneous interactions that are currently tracking this gesture.