Added in API level 33

TouchInteractionController.Callback


public static interface TouchInteractionController.Callback

android.accessibilityservice.TouchInteractionController.Callback


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

Summary

Public methods

abstract void onMotionEvent(MotionEvent event)

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

abstract void onStateChanged(int state)

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

Public methods

onMotionEvent

Added in API level 33
public abstract void onMotionEvent (MotionEvent event)

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.