Package io.appium.java_client.ios.touch
Class IOSPressOptions
java.lang.Object
io.appium.java_client.touch.ActionOptions<AbstractOptionCombinedWithPosition<T>>
io.appium.java_client.touch.offset.AbstractOptionCombinedWithPosition<IOSPressOptions>
io.appium.java_client.ios.touch.IOSPressOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a map based on the provided options.static IOSPressOptionsIt creates an empty instance ofIOSPressOptions.withPressure(double pressure) Set the pressure value.Methods inherited from class io.appium.java_client.touch.offset.AbstractOptionCombinedWithPosition
verify, withElement, withPosition
-
Constructor Details
-
IOSPressOptions
public IOSPressOptions()
-
-
Method Details
-
iosPressOptions
It creates an empty instance ofIOSPressOptions.- Returns:
- an empty instance of
IOSPressOptions
-
withPressure
Set the pressure value. This allows to simulate force/3D touch on devices, that support it.- Parameters:
pressure- the value to set. See the description of `force` property on Apple's UITouch class (https://developer.apple.com/documentation/uikit/uitouch?language=objc) for more details on possible value ranges.- Returns:
- this instance for chaining.
-
build
Description copied from class:ActionOptionsCreates a map based on the provided options.- Overrides:
buildin classAbstractOptionCombinedWithPosition<IOSPressOptions>- Returns:
- options mapping.
-