Added in API level 26

FingerprintGestureCallback


abstract class FingerprintGestureCallback
kotlin.Any
   ↳ android.accessibilityservice.FingerprintGestureController.FingerprintGestureCallback

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

Summary

Public constructors

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

Added in API level 26
open fun onGestureDetected(gesture: Int): Unit

Called when the fingerprint sensor detects gestures.

Parameters
gesture Int: The id of the gesture that was detected. For example, FINGERPRINT_GESTURE_SWIPE_RIGHT.

onGestureDetectionAvailabilityChanged

Added in API level 26
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.