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

ПараметрОписание
touchDataData 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

ПараметрОписание
touchDataData 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

ПараметрОписание
touchDataData 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

ПараметрОписание
touchDataData about touch event.

LongTouch

Method

Swipes into the view of the HtmlElement and long-touches it.

Parameters

ПараметрОписание
heHtmlElement that is to be touched.

LongTouch

Method

Long-touches the point that is already in the view.

Parameters

ПараметрОписание
xX coordinate of a point relative to the top side of the view.
yY 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

ПараметрОписание
heHtmlElement that is to be touched.

Touch

Method

Swipes into the view of the HtmlElement and touches it.

Parameters

ПараметрОписание
heHtmlElement that is to be touched.
pauseMsPause 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

ПараметрОписание
xX coordinate of a point relative to the top side of the view.
yY coordinate of a point relative to the top side of the view.

Touch

Method

Touches the point that is already in the view.

Parameters

ПараметрОписание
xX coordinate of a point relative to the top side of the view.
yY coordinate of a point relative to the top side of the view.
pauseMsPause 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

ПараметрОписание
heHtmlElement 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

ПараметрОписание
xX coordinate of a point relative to the top of a window
yY 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

ПараметрОписание
fromXX coordinate of a starting point relative to the top side of the view.
fromYY coordinate of a starting point relative to the top side of the view.
toXX coordinate of an ending point relative to the top side of the view.
toYY 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

ПараметрОписание
fromXX coordinate of a starting point relative to the top side of the view.
fromYY coordinate of a starting point relative to the top side of the view.
heToHtmlElement 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

ПараметрОписание
heFromHtmlElement that works as a starting point for the swipe.
toXX coordinate of a final point relative to the top side of the view.
toYY 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

ПараметрОписание
swipeDirectionDirection 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

ПараметрОписание
valueTouchEmulationParameters that are to be used in the current browser instance.