Stay organized with collections
Save and categorize content based on your preferences.
FingerprintGestureCallback
abstract class FingerprintGestureCallback
Class that is called back when fingerprint gestures are being used for accessibility.
Summary
Public methods |
open Unit |
Called when the fingerprint sensor detects gestures.
|
open Unit |
Called when the fingerprint sensor's gesture detection becomes available or unavailable.
|
Public constructors
FingerprintGestureCallback
FingerprintGestureCallback()
Public methods
onGestureDetected
open fun onGestureDetected(gesture: Int): Unit
Called when the fingerprint sensor detects gestures.
onGestureDetectionAvailabilityChanged
open fun onGestureDetectionAvailabilityChanged(available: Boolean): Unit
Called when the fingerprint sensor's gesture detection becomes available or unavailable.
Parameters |
available |
Boolean: Whether or not the sensor's gesture detection is now available. |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# FingerprintGestureController.FingerprintGestureCallback\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFingerprintGestureCallback\n==========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/accessibilityservice/FingerprintGestureController.FingerprintGestureCallback \"View this page in Java\") \n\n```\nabstract class FingerprintGestureCallback\n```\n\n|---|-------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.accessibilityservice.FingerprintGestureController.FingerprintGestureCallback](#) |\n\nClass that is called back when fingerprint gestures are being used for accessibility.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------|---|\n| [FingerprintGestureCallback](#FingerprintGestureCallback())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGestureDetected](#onGestureDetected(kotlin.Int))`(`gesture:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Called when the fingerprint sensor detects gestures. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGestureDetectionAvailabilityChanged](#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. |\n\nPublic constructors\n-------------------\n\n### FingerprintGestureCallback\n\n```\nFingerprintGestureCallback()\n```\n\nPublic methods\n--------------\n\n### onGestureDetected\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun onGestureDetected(gesture: Int): Unit\n```\n\nCalled when the fingerprint sensor detects gestures.\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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](/reference/kotlin/android/accessibilityservice/FingerprintGestureController#FINGERPRINT_GESTURE_SWIPE_RIGHT:kotlin.Int). |\n\n### onGestureDetectionAvailabilityChanged\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun onGestureDetectionAvailabilityChanged(available: Boolean): Unit\n```\n\nCalled when the fingerprint sensor's gesture detection becomes available or unavailable.\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `available` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html): Whether or not the sensor's gesture detection is now available. |"]]