Package com.hp.lft.sdk.mobile
Class TapArgs
java.lang.Object
com.hp.lft.sdk.mobile.TapArgs
Arguments that define additional behavior for Tap operations.
This class can be initialized using the builder pattern.
This class can be initialized using the builder pattern.
-
Constructor Summary
ConstructorsConstructorDescriptionTapArgs()
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 TypeMethodDescriptionReturns 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.setLocation
(Location location) 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.
-
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
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
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
Returns the location to tap.
Default = center of the object- Returns:
- the location to tap.
-
setLocation
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
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
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).
-