Package com.hp.lft.sdk.web
Class WebLongPressArgs
java.lang.Object
com.hp.lft.sdk.web.WebLongPressArgs
Arguments that define additional behavior for LongPress operations.
This class can be initialized using the builder pattern.
This class can be initialized using the builder pattern.
- 
Constructor SummaryConstructorsConstructorDescriptionInitializes a new instance of the WebLongPressArgs class with default arguments (press at the center of the object for 1 second).
- 
Method SummaryModifier and TypeMethodDescriptiondoubleReturns the duration for the LongPress operation.Returns the location to perform the LongPress operation.setDuration(double duration) Sets the number of seconds for the LongPress operation.setLocation(Location location) Sets the location to perform the LongPress operation.
- 
Constructor Details- 
WebLongPressArgspublic WebLongPressArgs()Initializes a new instance of the WebLongPressArgs class with default arguments (press at the center of the object for 1 second).
 
- 
- 
Method Details- 
getLocationReturns the location to perform the LongPress operation. Possible values:Location
 Default value = center of the object- Returns:
- the location to perform the LongPress operation.
 
- 
setLocationSets the location to perform the LongPress operation.- Parameters:
- location- the location to perform the LongPress operation. Possible values:- Location
- Returns:
- the WebLongPressArgs instance with the updated state (builder pattern).
 
- 
getDurationpublic double getDuration()Returns the duration for the LongPress operation.- Returns:
- the number of seconds to press.
 
- 
setDurationSets the number of seconds for the LongPress operation.- Parameters:
- duration- the number of seconds to press.
- Returns:
- the WebLongPressArgs instance with the updated state (builder pattern).
 
 
-