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 TypeMethod and Description
      java.lang.StringgetGesture()
      Returns the gesture class designed by the mobile application developer to handle this gesture on this object.
      LocationgetLocation()
      Returns the location to perform the swipe.
      SwipeArgssetGesture(java.lang.String gesture)
      Sets the gesture class designed by the mobile application developer to handle this gesture on this object.
      SwipeArgssetLocation(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).