Share this page

com.hp.lft.sdk.mobile

## Class SwipeArgs

- java.lang.Object
- - com.hp.lft.sdk.mobile.SwipeArgs

-     public class SwipeArgs
      extends java.lang.Object

  Arguments that define additional behavior for Swipe operations.
  This class can be initialized using the builder pattern.

- - ### Constructor Summary

    Constructor and Description
    `SwipeArgs()` Initializes a new instance of the SwipeArgs class with default arguments (from the leading edge of the element or device).

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getGesture()` Returns the gesture class designed by the mobile application developer to handle this gesture on this object.
    `Location` | `getLocation()` Returns the location to perform the swipe.
    `SwipeArgs` | `setGesture(java.lang.String gesture)` Sets the gesture class designed by the mobile application developer to handle this gesture on this object.
    `SwipeArgs` | `setLocation(Location location)` Sets the location to perform the swipe.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SwipeArgs

          public SwipeArgs()

      Initializes a new instance of the SwipeArgs class with default arguments (from the leading edge of the element or device).

  - ### Method Detail

    - #### getGesture

          public java.lang.String getGesture()

      Returns the gesture class designed by the mobile application developer to handle this gesture on this object. (iOS Only)
      Needed only if the application developer overrode the default iOS gesture class.
      Returns:
        the gesture class designed by the mobile application developer.

    - #### setGesture

          public SwipeArgs setGesture(java.lang.String gesture)

      Sets the gesture class designed by the mobile application developer to handle this gesture on this object. (iOS Only)
      Needed only if the application developer overrode the default iOS gesture class.
      Parameters:
        `gesture` - the gesture class designed by the mobile application developer.
      Returns:
        the SwipeArgs instance with the updated state (builder pattern).

    - #### getLocation

          public Location getLocation()

      Returns the location to perform the swipe.
      Default = center of the object
      Returns:
        the location to perform the swipe.

    - #### setLocation

          public SwipeArgs setLocation(Location location)

      Sets the location to perform the swipe.
      Parameters:
        `location` - the location to perform the swipe.
      Returns:
        the SwipeArgs instance with the updated state (builder pattern).

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: