Added in API level 33

Callback


interface Callback
android.accessibilityservice.TouchInteractionController.Callback

callbacks allow services to receive motion events and state change updates.

Summary

Public methods
abstract Unit

Called when the framework has sent a motion event to the service.

abstract Unit

Called when the state of motion event dispatch for this display has changed.

Public methods

onMotionEvent

Added in API level 33
abstract fun onMotionEvent(event: MotionEvent): Unit

Called when the framework has sent a motion event to the service.

Parameters
event MotionEvent: the event being passed to the service. This value cannot be null.