TouchEmulationParameters
Assembly: ZennoLab.CommandCenter
Full name: ZennoLab.CommandCenter.TouchEvents.TouchEmulationParameters
Parameters for touch emulations (curvature, speed, pauses, randomization). Touches are performed using Bezier Curve. https://en.wikipedia.org/wiki/Bezier_curve
Fields
MinCurvature
Field
Minimum curvature of swipes. Acceptable range: [0, 1]. Must be less than or equal to MaxCurvature. Actual curvature of each swipe will be a random number between MinCurvature and MaxCurvature
MaxCurvature
Field
Maximum curvature of swipes. Acceptable range: [0, 1]. Must be greater than or equal to MinCurvature. Actual curvature of each swipe will be a random number between MinCurvature and MaxCurvature
MinCurvePeakShift
Field
First boundary for curve peak of swipe. Acceptable range: [0, 1]. Must be less than or equal to MaxCurvePeakShift. Actual peak shift for each swipe will be a random number between MinCurvePeakShift and MaxCurvePeakShift Actual peak shift works as follows: 0 means that peak will be near starting point; 1 means that peak will be near ending point; 0.5f means that peak will be directly in the middle of starting and ending points;
MaxCurvePeakShift
Field
Second boundary for curve peak of swipe. Acceptable range: [0, 1]. Must be greater than or equal to MinCurvePeakShift. Actual peak shift for each swipe will be a random number between MinCurvePeakShift and MaxCurvePeakShift Actual peak shift works as follows: 0 means that peak will be near starting point; 1 means that peak will be near ending point; 0.5f means that peak will be directly in the middle of starting and ending points;
MinStep
Field
Minimum distance for steps while following Bezier curve. Acceptable range: [1, 60]. Must be less than or equal to MaxStep. Distance of steps is directly proportional to the speed of swipes. Actual distance for steps of each swipe will start at MinStep. It will get multiplied by Acceleration each step, but will not exceed MaxStep
MaxStep
Field
Minimum distance for steps while following Bezier curve. Acceptable range: [1, 60]. Must be greater than or equal to MinStep. Distance of steps is directly proportional to the speed of swipes. Actual distance for steps of each swipe will start at MinStep. It will get multiplied by Acceleration each step, but will not exceed MaxStep
Acceleration
Field
Acceleration for the speed of swipe. Acceptable range: [1, 2].
PauseBetweenStepsMs
Field
Pause between steps while following Bezier curve in milliseconds. Acceptable range: [1, 200]. Should correspond to the refresh rate of a touch-screen of an emulated device. Value is inversely proportional to the speed of swipes.
PauseBetweenSwipesMs
Field
Pause at the end of each swipe in milliseconds. Acceptable range: [200, 2000].
SwipeFractionX
Field
Fraction of a screen width that is used for swipe-scrolls. Acceptable range: [0.2, 0.8].
SwipeFractionY
Field
Fraction of a screen height that is used for swipe-scrolls. Acceptable range: [0.2, 0.8].
SwipeDeviationX
Field
Fraction of a screen width that is used for randomizing starting and final positions for swipe-scrolls. Acceptable range: [0, 0.2]
SwipeDeviationY
Field
Fraction of a screen height that is used for randomizing starting and final positions for swipe-scrolls. Acceptable range: [0, 0.2]
RightThumbProbability
Field
Probability that the curve will look like it was created by right thumb (and not the left one). Acceptable range: [0, 1]
RectangleBasePointPartH
Field
Fraction of HtmlElement’s height that is used when generating touch-event. Acceptable range: [0, 1]
RectangleBasePointPartW
Field
Fraction of HtmlElement’s width that is used when generating touch-event. Acceptable range: [0, 1]
TouchLengthMs
Field
Default touch length in milliseconds. Acceptable range: [16, 3000]
LongTouchLengthMs
Field
Default long touch length in milliseconds. Acceptable range: [160, 5000]
PauseAfterTouchMs
Field
Pause after touch in milliseconds. Acceptable range: [50, 2000]
MinSwipeShiftTowardsThumb
Field
After the starting and the final point of swipe-curve are computed, they are also shifted in the direction of a thumb that performs the swipe. This value controls the minimum fraction of a screen for such shift. Acceptable range: [0, 0.4]. Must be less than or equal to MaxSwipeShiftTowardsThumb. Actual shift of each swipe will be a random number between MinSwipeShiftTowardsThumb and MaxSwipeShiftTowardsThumb
MaxSwipeShiftTowardsThumb
Field
After the starting and the final point of swipe-curve are computed, they are also shifted in the direction of a thumb that performs the swipe. This value controls the maximum fraction of a screen for such shift. Acceptable range: [0, 0.4]. Must be greater than or equal to MinSwipeShiftTowardsThumb. Actual shift of each swipe will be a random number between MinSwipeShiftTowardsThumb and MaxSwipeShiftTowardsThumb