TouchSimulation
Assembly: ZennoLab.CommandCenter
Full name: ZennoLab.CommandCenter.Tab.TouchSimulation
Contains methods simulating work with touch screen
Methods
TouchStart
Method
Indicates that the screen has been touched.
Touches begin with one TouchStart action followed by zero or more TouchMoved actions and finally one TouchEnded or TouchCancelled action. Events not respecting this order will be ignored.
Parameters
| Параметр | Описание |
|---|---|
touchData | Data about touch event. |
TouchEnd
Method
Indicates that the screen no longer is touched.
Touches begin with one TouchStart action followed by zero or more TouchMoved actions and finally one TouchEnded or TouchCancelled action. Events not respecting this order will be ignored.
Parameters
| Параметр | Описание |
|---|---|
touchData | Data about touch event. |
TouchMove
Method
Indicates the swipe.
Touches begin with one TouchStart action followed by zero or more TouchMoved actions and finally one TouchEnded or TouchCancelled action. Events not respecting this order will be ignored.
Parameters
| Параметр | Описание |
|---|---|
touchData | Data about touch event. |
TouchCancel
Method
Indicates that touch event must be cancelled.
Touches begin with one TouchStart action followed by zero or more TouchMoved actions and finally one TouchEnded or TouchCancelled action. Events not respecting this order will be ignored.
Parameters
| Параметр | Описание |
|---|---|
touchData | Data about touch event. |
LongTouch
Method
Swipes into the view of the HtmlElement and long-touches it.
Parameters
| Параметр | Описание |
|---|---|
he | HtmlElement that is to be touched. |
LongTouch
Method
Long-touches the point that is already in the view.
Parameters
| Параметр | Описание |
|---|---|
x | X coordinate of a point relative to the top side of the view. |
y | Y coordinate of a point relative to the top side of the view. |
Touch
Method
Swipes into the view of the HtmlElement and touches it.
Parameters
| Параметр | Описание |
|---|---|
he | HtmlElement that is to be touched. |
Touch
Method
Swipes into the view of the HtmlElement and touches it.
Parameters
| Параметр | Описание |
|---|---|
he | HtmlElement that is to be touched. |
pauseMs | Pause in milliseconds between TouchStart and TouchEnd. 0 means short touch and -1 means long touch (from TouchEmulationParameters). |
Touch
Method
Touches the point that is already in the view.
Parameters
| Параметр | Описание |
|---|---|
x | X coordinate of a point relative to the top side of the view. |
y | Y coordinate of a point relative to the top side of the view. |
Touch
Method
Touches the point that is already in the view.
Parameters
| Параметр | Описание |
|---|---|
x | X coordinate of a point relative to the top side of the view. |
y | Y coordinate of a point relative to the top side of the view. |
pauseMs | Pause between TouchStart and TouchEnd. 0 means short touch and -1 means long touch (from TouchEmulationParameters). |
SwipeIntoView
Method
Swipes into the view of the HtmlElement.
Parameters
| Параметр | Описание |
|---|---|
he | HtmlElement that needs to get displayed. |
SwipeIntoViewUsingAbsoluteCoords
Method
Swipes into the view of a point. Mind that coordinates for this method are relative to the top of a window. Do not call this method using coordinates, relative to the top of a view!
Parameters
| Параметр | Описание |
|---|---|
x | X coordinate of a point relative to the top of a window |
y | Y coordinate of a point relative to the top of a window. |
SwipeBetween
Method
Performs a swipe between two points. Both points must be in a view, and the coordinates must be relative to the top of a view.
Parameters
| Параметр | Описание |
|---|---|
fromX | X coordinate of a starting point relative to the top side of the view. |
fromY | Y coordinate of a starting point relative to the top side of the view. |
toX | X coordinate of an ending point relative to the top side of the view. |
toY | Y coordinate of an ending point relative to the top side of the view. |
SwipeBetween
Method
Performs a swipe from a point to the HtmlElement. Both of them must be in a view, and the coordinates of a point must be relative to the top of a view.
Parameters
| Параметр | Описание |
|---|---|
fromX | X coordinate of a starting point relative to the top side of the view. |
fromY | Y coordinate of a starting point relative to the top side of the view. |
heTo | HtmlElement that works as a ending point for the swipe. |
SwipeBetween
Method
Performs a swipe from the HtmlElement to the point. Both of them must be in a view, and the coordinates of a point must be relative to the top of a view.
Parameters
| Параметр | Описание |
|---|---|
heFrom | HtmlElement that works as a starting point for the swipe. |
toX | X coordinate of a final point relative to the top side of the view. |
toY | Y coordinate of a final point relative to the top side of the view. |
SwipeSimple
Method
Performs a simple swipe in one of four predefined directions.
Parameters
| Параметр | Описание |
|---|---|
swipeDirection | Direction of a swipe |
GetCopyOfTouchEmulationParameters
Method
Returns a copy of TouchEmulationParameters that are being used in the current browser instance. Mind that this is only a copy, and changes to it will not affect anything unless you call SetTouchEmulationParameters
Returns: A copy of TouchEmulationParameters that are being used in the current browser instance.
SetTouchEmulationParameters
Method
Sets touch emulation parameters of the current browser instance to the value passed in it.
Parameters
| Параметр | Описание |
|---|---|
value | TouchEmulationParameters that are to be used in the current browser instance. |