Activities
latest
false
Banner background image
UI Automation Activities
Last updated Apr 26, 2024

DrawPattern

Draws a path marked by multiple points on the device screen. The points that create the path are recorded from the path of the finger on the device screen. You can add multiple finger paths to simulate screen interactions that involve multiple fingers.

Definition

Namespace: UiPath.MobileAutomation.API.Models

Assembly: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

Overloads

OverloadDescription
DrawPattern(FingerPath, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)Draws a single path marked by multiple points on the device screen.
DrawPattern(List<FingerPath>, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)Draws multiple paths marked by multiple points on the device screen. Suitable for scenarios where the user performs an action that requires two finger on the device screen.

DrawPattern(FingerPath, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)

Draws a single path marked by multiple points on the device screen.

DrawPattern(
	    FingerPath fingerPath,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions.DrawPatternOptions options = nullDrawPattern(
	    FingerPath fingerPath,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions.DrawPatternOptions options = null
fingerPath FingerPath
All the points recorded from the path of the finger on the device screen, on a X-Y axis. Visit FingerPath Class to learn how to create the finger path, using the FingerPath Constructor and FingerPath Methods, part of the FingerPath class.
coordinatesType CoordinatesTypeEnum (Optional)
Specifiy the coordinates of the finger as an CoordinatesTypeEnum object for the ElementExists API. Default value is null. The available types are:
  • PhysicalPixels
  • DeviceIndependentPixels
pressType PressTypeEnum (Optional)
Specify the press type for the CoordinatesTypeEnum inputted above for the above parameter. Default value is CoordinatesTypeEnum.DeviceIndependentPixels. The types of press you can use are:
  • ShortPress
  • LongPress
waitTime Float (Optional)
The time (in milliseconds) that you wait for a point in the finger path to complete.
Tip: To work as expected, the waitTime should be higher than 0 for iOS devices.
options MobileOptions.DrawPatternOptions (Optional)
Specify the MobileOptions.DrawPatternOptions for the DrawPattern action. Default value is null.

DrawPattern(List<FingerPath>, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)

Draws multiple paths marked by multiple points on the device screen. Suitable for scenarios where the user performs an action that requires two finger on the device screen.

DrawPattern(
	    List<FingerPath> fingerPaths,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions. DrawPatternOptions options = null
)DrawPattern(
	    List<FingerPath> fingerPaths,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions. DrawPatternOptions options = null
)
fingerPaths List<FingerPath>
A list of finger paths created by multiple fingers on a screen, on a X-Y axis (for example, in a zoom-in or zoom-out scenario, the user touches the screen with two fingers in order to perform the action). Visit FingerPath Class to learn how to create the finger path, using the FingerPath Constructor and FingerPath Methods, part of the FingerPath class.
coordinatesType CoordinatesTypeEnum (Optional)
Specify the coordinates of the finger as an CoordinatesTypeEnum object for the ElementExists API. Default value is null.
pressType PressTypeEnum (Optional)
Specify the press type for the CoordinatesTypeEnum inputted above for the above parameter. Default value is PressTypeEnum.ShortPress. The types of press you can use are:
  • ShortPress
  • LongPress
waitTime Float (Optional)
The time (in milliseconds) that you wait for a point in the finger path to complete.
Tip: To work as expected, the waitTime should be higher than 0 for iOS devices.
options MobileOptions.DrawPatternOptions (Optional)
Specify the MobileOptions.DrawPatternOptions for the DrawPattern action. Default value is null.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.