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 | onMotionEvent(event: MotionEvent)Called when the framework has sent a motion event to the service. | 
| abstract Unit | onStateChanged(state: Int)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. | 
onStateChanged
Added in API level 33
      abstract fun onStateChanged(state: Int): Unit
Called when the state of motion event dispatch for this display has changed.
