# FingerprintGestureController.FingerprintGestureCallback

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

# FingerprintGestureCallback

*** ** * ** ***

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

```
abstract class FingerprintGestureCallback
```

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

Class that is called back when fingerprint gestures are being used for accessibility.

## Summary

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

|                                                                                                                                                                                                                                                   Public methods                                                                                                                                                                                                                                                   ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGestureDetected](https://developer.android.com/reference/kotlin/android/accessibilityservice/FingerprintGestureController.FingerprintGestureCallback#onGestureDetected(kotlin.Int))`(`gesture:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Called when the fingerprint sensor detects gestures.                                                                                           |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGestureDetectionAvailabilityChanged](https://developer.android.com/reference/kotlin/android/accessibilityservice/FingerprintGestureController.FingerprintGestureCallback#onGestureDetectionAvailabilityChanged(kotlin.Boolean))`(`available:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Called when the fingerprint sensor's gesture detection becomes available or unavailable. |

## Public constructors

### FingerprintGestureCallback

```
FingerprintGestureCallback()
```

## Public methods

### onGestureDetected

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

```
open fun onGestureDetected(gesture: Int): Unit
```

Called when the fingerprint sensor detects gestures.

|                                                                                                                                                             Parameters                                                                                                                                                             ||
|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `gesture` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The id of the gesture that was detected. For example,[FINGERPRINT_GESTURE_SWIPE_RIGHT](https://developer.android.com/reference/kotlin/android/accessibilityservice/FingerprintGestureController#FINGERPRINT_GESTURE_SWIPE_RIGHT:kotlin.Int). |

### onGestureDetectionAvailabilityChanged

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

```
open fun onGestureDetectionAvailabilityChanged(available: Boolean): Unit
```

Called when the fingerprint sensor's gesture detection becomes available or unavailable.

|                                                                           Parameters                                                                            ||
|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
| `available` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):Whether or not the sensor's gesture detection is now available. |