public static class GestureOptions.TapOptions extends Object
TapOption
class serves as a utility class to convert value based GestureOptions
to JSON
objects. UIAAutomation requires these tapOptions to be Javascript objects, but JSON formats are also taken by
UIAAutomation framework.Constructor and Description |
---|
TapOptions() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
asMap()
Returns a
Map representation of this GestureOptions.TapOptions |
void |
setOffset(GestureOptions.TapOffset tapOffset)
Sets the tapOffset for this
GestureOptions.TapOptions object. |
void |
setOption(GestureOptions option,
int value)
Sets a valid option for this
GestureOptions.TapOptions object. |
String |
toString()
Returns a JSON representation of this
GestureOptions.TapOptions |
public void setOption(GestureOptions option, int value)
GestureOptions.TapOptions
object. Invalid options are silently ignored.option
- GestureOptions.TAP_COUNT
or GestureOptions.TOUCH_COUNT
or
GestureOptions.DURATION
value
- int value.public void setOffset(GestureOptions.TapOffset tapOffset)
GestureOptions.TapOptions
object.tapOffset
- GestureOptions.TapOffset
instance.public String toString()
GestureOptions.TapOptions
Copyright © 2016 PayPal Open Source. All rights reserved.