# AccessibilityService.GestureResultCallback

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# GestureResultCallback

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.GestureResultCallback "View this page in Java")  

```
abstract class GestureResultCallback
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                                     ||
| ↳ | [android.accessibilityservice.AccessibilityService.GestureResultCallback](https://developer.android.com/reference/kotlin/android/accessibilityservice/AccessibilityService.GestureResultCallback#) |

Class used to report status of dispatched gestures

## Summary

|                                                                                  Public constructors                                                                                  ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [GestureResultCallback](https://developer.android.com/reference/kotlin/android/accessibilityservice/AccessibilityService.GestureResultCallback#GestureResultCallback())`()` <br /> |

|                                                                                                                                                                                                                                      Public methods                                                                                                                                                                                                                                      ||
|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onCancelled](https://developer.android.com/reference/kotlin/android/accessibilityservice/AccessibilityService.GestureResultCallback#onCancelled(android.accessibilityservice.GestureDescription))`(`gestureDescription:` `[GestureDescription](https://developer.android.com/reference/kotlin/android/accessibilityservice/GestureDescription)!`)` Called when the gesture was cancelled              |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onCompleted](https://developer.android.com/reference/kotlin/android/accessibilityservice/AccessibilityService.GestureResultCallback#onCompleted(android.accessibilityservice.GestureDescription))`(`gestureDescription:` `[GestureDescription](https://developer.android.com/reference/kotlin/android/accessibilityservice/GestureDescription)!`)` Called when the gesture has completed successfully |

## Public constructors

### GestureResultCallback

```
GestureResultCallback()
```

## Public methods

### onCancelled

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun onCancelled(gestureDescription: GestureDescription!): Unit
```

Called when the gesture was cancelled

|                                                                                           Parameters                                                                                           ||
|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `gestureDescription` | [GestureDescription](https://developer.android.com/reference/kotlin/android/accessibilityservice/GestureDescription)!:The description of the gesture that was cancelled. |

### onCompleted

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun onCompleted(gestureDescription: GestureDescription!): Unit
```

Called when the gesture has completed successfully

|                                                                                         Parameters                                                                                         ||
|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `gestureDescription` | [GestureDescription](https://developer.android.com/reference/kotlin/android/accessibilityservice/GestureDescription)!:The description of the gesture that completed. |