public class TouchAction<T extends TouchAction<T>> extends java.lang.Object implements PerformsActions<T>
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | TouchAction.ActionParameterJust holds values to eventually return the parameters required for the mjsonwp. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected com.google.common.collect.ImmutableList.Builder<TouchAction.ActionParameter> | parameterBuilder | 
| Constructor and Description | 
|---|
| TouchAction(PerformsTouchActions performsTouchActions) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cancel()Cancel this action, if it was partially completed by the performsTouchActions. | 
| protected T | clearParameters()Clears all the existing action parameters and resets the instance to the initial state. | 
| protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>> | getParameters()Get the mjsonwp parameters for this Action. | 
| T | longPress(LongPressOptions longPressOptions)Press and hold the at the center of an element until the context menu event has fired. | 
| T | longPress(PointOption longPressOptions)Press and hold the at the center of an element until the context menu event has fired. | 
| T | moveTo(PointOption moveToOptions)Moves current touch to a new position. | 
| T | perform()Perform this chain of actions on the performsTouchActions. | 
| T | press(PointOption pressOptions)Press action on the screen. | 
| T | release()Remove the current touching implement from the screen (withdraw your touch). | 
| T | tap(PointOption tapOptions)Tap on a position. | 
| T | tap(TapOptions tapOptions)Tap on an element. | 
| T | waitAction()A wait action, used as a NOP in multi-chaining. | 
| T | waitAction(WaitOptions waitOptions)Waits for specified amount of time to pass before continue to next touch action. | 
protected com.google.common.collect.ImmutableList.Builder<TouchAction.ActionParameter> parameterBuilder
public TouchAction(PerformsTouchActions performsTouchActions)
public T press(PointOption pressOptions)
pressOptions - see PointOption and ElementOption.public T release()
public T moveTo(PointOption moveToOptions)
moveToOptions - see PointOption and ElementOption
                       Important: some older Appium drivers releases have a bug when moveTo
                       coordinates are calculated as relative to the recent pointer position
                       in the chain instead of being absolute.public T tap(TapOptions tapOptions)
tapOptions - see TapOptions.public T tap(PointOption tapOptions)
tapOptions - see PointOption and ElementOptionpublic T waitAction()
public T waitAction(WaitOptions waitOptions)
waitOptions - see WaitOptions.public T longPress(LongPressOptions longPressOptions)
longPressOptions - see LongPressOptions.public T longPress(PointOption longPressOptions)
longPressOptions - see PointOption and ElementOption.public void cancel()
public T perform()
perform in interface PerformsActions<T extends TouchAction<T>>protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getParameters()
protected T clearParameters()