Package io.appium.java_client.touch
Class LongPressOptions
- java.lang.Object
-
- io.appium.java_client.touch.ActionOptions<AbstractOptionCombinedWithPosition<T>>
-
- io.appium.java_client.touch.offset.AbstractOptionCombinedWithPosition<LongPressOptions>
-
- io.appium.java_client.touch.LongPressOptions
-
@Deprecated public class LongPressOptions extends AbstractOptionCombinedWithPosition<LongPressOptions>
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.time.Duration
duration
Deprecated.
-
Constructor Summary
Constructors Constructor Description LongPressOptions()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
build()
Deprecated.Creates a map based on the provided options.static LongPressOptions
longPressOptions()
Deprecated.It creates an empty instance ofLongPressOptions
.LongPressOptions
withDuration(java.time.Duration duration)
Deprecated.Set the long press duration.-
Methods inherited from class io.appium.java_client.touch.offset.AbstractOptionCombinedWithPosition
verify, withElement, withPosition
-
-
-
-
Method Detail
-
longPressOptions
public static LongPressOptions longPressOptions()
Deprecated.It creates an empty instance ofLongPressOptions
.- Returns:
- an empty instance of
LongPressOptions
-
withDuration
public LongPressOptions withDuration(java.time.Duration duration)
Deprecated.Set the long press duration.- Parameters:
duration
- the value to set. Time resolution unit is 1 ms.- Returns:
- this instance for chaining.
-
build
public java.util.Map<java.lang.String,java.lang.Object> build()
Deprecated.Description copied from class:ActionOptions
Creates a map based on the provided options.- Overrides:
build
in classAbstractOptionCombinedWithPosition<LongPressOptions>
- Returns:
- options mapping.
-
-