Class IOSPressOptions


public class IOSPressOptions extends AbstractOptionCombinedWithPosition<IOSPressOptions>
  • Constructor Details

    • IOSPressOptions

      public IOSPressOptions()
  • Method Details

    • iosPressOptions

      public static IOSPressOptions iosPressOptions()
      It creates an empty instance of IOSPressOptions.
      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 Map<String,Object> build()
      Description copied from class: ActionOptions
      Creates a map based on the provided options.
      Overrides:
      build in class AbstractOptionCombinedWithPosition<IOSPressOptions>
      Returns:
      options mapping.