Stay organized with collections
Save and categorize content based on your preferences.
GestureResultCallback
abstract class GestureResultCallback
Class used to report status of dispatched gestures
Summary
Public methods |
open Unit |
Called when the gesture was cancelled
|
open Unit |
Called when the gesture has completed successfully
|
Public constructors
GestureResultCallback
GestureResultCallback()
Public methods
onCancelled
open fun onCancelled(gestureDescription: GestureDescription!): Unit
Called when the gesture was cancelled
Parameters |
gestureDescription |
GestureDescription!: The description of the gesture that was cancelled. |
onCompleted
open fun onCompleted(gestureDescription: GestureDescription!): Unit
Called when the gesture has completed successfully
Parameters |
gestureDescription |
GestureDescription!: The description of the gesture that completed. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AccessibilityService.GestureResultCallback\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nGestureResultCallback\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/accessibilityservice/AccessibilityService.GestureResultCallback \"View this page in Java\") \n\n```\nabstract class GestureResultCallback\n```\n\n|---|------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.accessibilityservice.AccessibilityService.GestureResultCallback](#) |\n\nClass used to report status of dispatched gestures\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------|---|\n| [GestureResultCallback](#GestureResultCallback())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onCancelled](#onCancelled(android.accessibilityservice.GestureDescription))`(`gestureDescription:` `[GestureDescription](/reference/kotlin/android/accessibilityservice/GestureDescription)!`)` Called when the gesture was cancelled |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onCompleted](#onCompleted(android.accessibilityservice.GestureDescription))`(`gestureDescription:` `[GestureDescription](/reference/kotlin/android/accessibilityservice/GestureDescription)!`)` Called when the gesture has completed successfully |\n\nPublic constructors\n-------------------\n\n### GestureResultCallback\n\n```\nGestureResultCallback()\n```\n\nPublic methods\n--------------\n\n### onCancelled\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun onCancelled(gestureDescription: GestureDescription!): Unit\n```\n\nCalled when the gesture was cancelled\n\n| Parameters ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `gestureDescription` | [GestureDescription](/reference/kotlin/android/accessibilityservice/GestureDescription)!: The description of the gesture that was cancelled. |\n\n### onCompleted\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun onCompleted(gestureDescription: GestureDescription!): Unit\n```\n\nCalled when the gesture has completed successfully\n\n| Parameters ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `gestureDescription` | [GestureDescription](/reference/kotlin/android/accessibilityservice/GestureDescription)!: The description of the gesture that completed. |"]]