Class AbstractOptionCombinedWithPosition<T extends AbstractOptionCombinedWithPosition<T>>
- java.lang.Object
-
- io.appium.java_client.touch.ActionOptions<AbstractOptionCombinedWithPosition<T>>
-
- io.appium.java_client.touch.offset.AbstractOptionCombinedWithPosition<T>
-
- Direct Known Subclasses:
IOSPressOptions
,LongPressOptions
,TapOptions
@Deprecated public abstract class AbstractOptionCombinedWithPosition<T extends AbstractOptionCombinedWithPosition<T>> extends ActionOptions<AbstractOptionCombinedWithPosition<T>>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description AbstractOptionCombinedWithPosition()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
build()
Deprecated.Creates a map based on the provided options.protected void
verify()
Deprecated.This method is automatically called before building options map to verify the consistency of the instance.T
withElement(ElementOption element)
Deprecated.Most of touch action may use position which is relative to some element.T
withPosition(PointOption positionOption)
Deprecated.Some actions may require coordinates.
-
-
-
Method Detail
-
withPosition
public T withPosition(PointOption positionOption)
Deprecated.Some actions may require coordinates. Invocation of this method replaces the result of previouswithElement(ElementOption)
invocation.- Parameters:
positionOption
- required coordinates. *- Returns:
- self-reference
-
withElement
public T withElement(ElementOption element)
Deprecated.Most of touch action may use position which is relative to some element. In order to unify this behaviour this method was added. Invocation of this method replaces the result of previouswithPosition(PointOption)
invocation.- Parameters:
element
- required position which is relative to some element- Returns:
- self-reference
-
verify
protected void verify()
Deprecated.Description copied from class:ActionOptions
This method is automatically called before building options map to verify the consistency of the instance.- Specified by:
verify
in classActionOptions<AbstractOptionCombinedWithPosition<T extends AbstractOptionCombinedWithPosition<T>>>
-
build
public java.util.Map<java.lang.String,java.lang.Object> build()
Deprecated.Description copied from class:ActionOptions
Creates a map based on the provided options.- Overrides:
build
in classActionOptions<AbstractOptionCombinedWithPosition<T extends AbstractOptionCombinedWithPosition<T>>>
- Returns:
- options mapping.
-
-