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
-
public class IOSPressOptions extends AbstractOptionCombinedWithPosition<IOSPressOptions>
-
-
Constructor Summary
Constructors Constructor Description IOSPressOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>build()Creates a map based on the provided options.static IOSPressOptionsiosPressOptions()It creates an empty instance ofIOSPressOptions.IOSPressOptionswithPressure(double pressure)Set the pressure value.-
Methods inherited from class io.appium.java_client.touch.offset.AbstractOptionCombinedWithPosition
verify, withElement, withPosition
-
-
-
-
Method Detail
-
iosPressOptions
public static IOSPressOptions iosPressOptions()
It creates an empty instance ofIOSPressOptions.- Returns:
- an empty instance of
IOSPressOptions
-
withPressure
public IOSPressOptions withPressure(double pressure)
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
public java.util.Map<java.lang.String,java.lang.Object> build()
Description copied from class:ActionOptionsCreates a map based on the provided options.- Overrides:
buildin classAbstractOptionCombinedWithPosition<IOSPressOptions>- Returns:
- options mapping.
-
-