Tapper
  public
  
  
  
  interface
  Tapper
  
  
  
| android.support.test.espresso.action.Tapper | 
|  Known Indirect Subclasses | 
Interface to implement different click types.
Summary
| Nested classes | |
|---|---|
| 
        
        
        
        
        enum | Tapper.StatusThe result of the tap. | 
| Public methods | |
|---|---|
| 
        abstract
        
        
        
        
        Tapper.Status | 
      sendTap(UiController uiController, float[] coordinates, float[] precision, int inputDevice, int buttonState)
      Sends a MotionEvent to the given UiController. | 
| 
        abstract
        
        
        
        
        Tapper.Status | 
      sendTap(UiController uiController, float[] coordinates, float[] precision)
      
      This method is deprecated.
    Use @{link #sendTap(UiController, float[], float[], int, int)} instead This will
     call the @{link #sendTap(UiController, float[], float[], int, int)} with  | 
Public methods
sendTap
Tapper.Status sendTap (UiController uiController, float[] coordinates, float[] precision, int inputDevice, int buttonState)
Sends a MotionEvent to the given UiController.
| Parameters | |
|---|---|
| uiController | UiController: a UiController to use to send MotionEvents to the screen. | 
| coordinates | float: a float[] with x and y values of center of the tap. | 
| precision | float: a float[] with x and y values of precision of the tap. | 
| inputDevice | int: the input device of the tap, ie. InputDevice.SOURCE_MOUSE. | 
| buttonState | int: the button the tap is received from, ie. BUTTON_PRIMARY, BUTTON_SECONDARY. | 
| Returns | |
|---|---|
| Tapper.Status | The status of the tap. | 
sendTap
Tapper.Status sendTap (UiController uiController, float[] coordinates, float[] precision)
      This method is deprecated.
    Use @{link #sendTap(UiController, float[], float[], int, int)} instead This will
     call the @{link #sendTap(UiController, float[], float[], int, int)} with SOURCE_UNKNOWN, BUTTON_PRIMARY
     by default.
  
| Parameters | |
|---|---|
| uiController | UiController | 
| coordinates | float | 
| precision | float | 
| Returns | |
|---|---|
| Tapper.Status | |
- Interfaces
- Classes- AdapterDataLoaderAction
- AdapterViewProtocol.AdaptedData
- AdapterViewProtocol.AdaptedData.Builder
- AdapterViewProtocols
- CloseKeyboardAction
- EditorAction
- EspressoKey
- EspressoKey.Builder
- GeneralClickAction
- GeneralSwipeAction
- KeyEventAction
- MotionEvents
- MotionEvents.DownResultHolder
- OpenLinkAction
- PressBackAction
- RepeatActionUntilViewState
- ReplaceTextAction
- ScrollToAction
- TypeTextAction
- ViewActions
 
- Enums
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
