Class SwipeArgs

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

public class SwipeArgs extends Object
Arguments that define additional behavior for Swipe operations.
This class can be initialized using the builder pattern.
  • Constructor Details

    • SwipeArgs

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

    • getGesture

      public 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(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).