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. | 
      
onStateChanged
    Added in API level 33
  
      
  
    public abstract void onStateChanged (int state)
Called when the state of motion event dispatch for this display has changed.
| Parameters | |
|---|---|
state | 
        
          int: the new state of motion event dispatch.
 Value is TouchInteractionController.STATE_CLEAR, TouchInteractionController.STATE_TOUCH_INTERACTING, TouchInteractionController.STATE_TOUCH_EXPLORING, TouchInteractionController.STATE_DRAGGING, or TouchInteractionController.STATE_DELEGATING |