public class LongPressOptions extends AbstractOptionCombinedWithPosition<LongPressOptions>
Modifier and Type | Field and Description |
---|---|
protected java.time.Duration |
duration |
Constructor and Description |
---|
LongPressOptions() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
build()
Creates a map based on the provided options.
|
static LongPressOptions |
longPressOptions()
It creates an empty instance of
LongPressOptions . |
LongPressOptions |
withDuration(java.time.Duration duration)
Set the long press duration.
|
verify, withElement, withPosition
public static LongPressOptions longPressOptions()
LongPressOptions
.LongPressOptions
public LongPressOptions withDuration(java.time.Duration duration)
duration
- the value to set.
Time resolution unit is 1 ms.public java.util.Map<java.lang.String,java.lang.Object> build()
ActionOptions
build
in class AbstractOptionCombinedWithPosition<LongPressOptions>