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, withPositionpublic static LongPressOptions longPressOptions()
LongPressOptions.LongPressOptionspublic 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()
ActionOptionsbuild in class AbstractOptionCombinedWithPosition<LongPressOptions>