Class TapArgs

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

public class TapArgs extends Object
Arguments that define additional behavior for Tap operations.
This class can be initialized using the builder pattern.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a new instance of the TapArgs class with default arguments (tap the center of the object once at one touch point).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the gesture class designed by the mobile application developer to handle this gesture on this object.
    Returns the location to tap.
    int
    Returns the number of times to tap the object.
    int
    The number of points to tap, similar to the number of fingers you would use for the gesture on a real device.
    setGesture(String gesture)
    Sets the gesture class designed by the mobile application developer to handle this gesture on this object.
    Sets the location to tap.
    setNumberOfTaps(int numberOfTaps)
    Sets the number of times to tap the object.
    setNumberOfTouchPoints(int numberOfTouchPoints)
    Sets the number of points to tap, similar to the number of fingers you would use for the gesture on a real device.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TapArgs

      public TapArgs()
      Initializes a new instance of the TapArgs class with default arguments (tap the center of the object once at one touch point).
  • 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 TapArgs 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 TapArgs instance with the updated state (builder pattern).
    • getLocation

      public Location getLocation()
      Returns the location to tap.
      Default = center of the object
      Returns:
      the location to tap.
    • setLocation

      public TapArgs setLocation(Location location)
      Sets the location to tap.
      Parameters:
      location - the location to tap.
      Returns:
      the TapArgs instance with the updated state (builder pattern).
    • getNumberOfTouchPoints

      public int getNumberOfTouchPoints()
      The number of points to tap, similar to the number of fingers you would use for the gesture on a real device. (iOS Only)
      Default = 1
      Returns:
      the number of points to tap.
    • setNumberOfTouchPoints

      public TapArgs setNumberOfTouchPoints(int numberOfTouchPoints)
      Sets the number of points to tap, similar to the number of fingers you would use for the gesture on a real device. (iOS Only)
      Parameters:
      numberOfTouchPoints - the number of points to tap.
      Returns:
      the TapArgs instance with the updated state (builder pattern).
    • getNumberOfTaps

      public int getNumberOfTaps()
      Returns the number of times to tap the object. (iOS Only)
      Returns:
      the number of times to tap the object.
    • setNumberOfTaps

      public TapArgs setNumberOfTaps(int numberOfTaps)
      Sets the number of times to tap the object. (iOS Only)
      Parameters:
      numberOfTaps - the number of times to tap the object.
      Returns:
      the TapArgs instance with the updated state (builder pattern).