io.appium.java_client
Class MultiTouchAction

java.lang.Object
  extended by io.appium.java_client.MultiTouchAction

public class MultiTouchAction
extends Object

Used for Webdriver 3 multi-touch gestures See the Webriver 3 spec https://dvcs.w3.org/hg/webdriver/raw-file/default/webdriver-spec.html The MultiTouchAction object is a collection of TouchAction objects (remember that TouchAction objects are in turn, a chain of individual actions) Add multiple TouchAction objects using the add() method. When perform() method is called, all actions are sent to the driver. The driver performs the first step of each TouchAction object simultaneously as a multi-touch "execution group". Conceptually, the number of TouchAction objects added to the MultiTouchAction is equal to the number of "fingers" or other appendages or tools touching the screen at the same time as part of this multi-gesture. Then the driver performs the second step of each TouchAction object and another "execution group", and the third, and so on. Using a waitAction() action within a TouchAction takes up one of the slots in an "execution group", so these can be used to sync up complex actions. Calling perform() sends the action command to the Mobile Driver. Otherwise, more and more actions can be chained.


Constructor Summary
MultiTouchAction(MobileDriver driver)
           
 
Method Summary
 MultiTouchAction add(TouchAction action)
          Add a TouchAction to this multi-touch gesture
protected  com.google.common.collect.ImmutableMap getParameters()
           
 void perform()
          Perform the multi-touch action on the mobile driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTouchAction

public MultiTouchAction(MobileDriver driver)
Method Detail

add

public MultiTouchAction add(TouchAction action)
Add a TouchAction to this multi-touch gesture

Parameters:
action - TouchAction to add to this gesture
Returns:
This MultiTouchAction, for chaining

perform

public void perform()
Perform the multi-touch action on the mobile driver.


getParameters

protected com.google.common.collect.ImmutableMap getParameters()


Copyright © 2014. All rights reserved.