UiPath Documentation
activities
latest
false
UI Automation activities

PositionalSwipe

PositionalSwipe in the Mobile Automation coded automation API: swipes to a predefined location on the screen with starting and ending points.

Swipes to a predefined location on the screen with starting and ending points.

Definition​

Namespace: UiPath.MobileAutomation.API.Models

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

PositionalSwipe(Point, Point, CoordinatesTypeEnum, Float, MobileOptions.PositionalSwipeOptions)​

PositionalSwipe(
	    Point startSwipePoint,
	    Point endSwipePoint,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    float waitTime = 4f,
	    MobileOptions. PositionalSwipeOptions options = null
)
PositionalSwipe(
	    Point startSwipePoint,
	    Point endSwipePoint,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    float waitTime = 4f,
	    MobileOptions. PositionalSwipeOptions options = null
)

startSwipePoint Point: Set the starting points for your positional swipe on the device screen.

endSwipePoint Point: Set the ending points for your positional swipe on the device screen.

coordinatesType CoordinatesTypeEnum (Optional): Specifies the coordinates type of startSwipePoint and endSwipePoint. Default value is CoordinatesTypeEnum.DeviceIndependentPixels. The available choices are:

* `CoordinatesTypeEnum.DeviceIndependentPixels` - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
* `CoordinatesTypeEnum.PhysicalPixels` - Use this option to run workflows on devices with similar density screens.
  Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
* `CoordinatesTypeEnum.DeviceIndependentPixels` - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
* `CoordinatesTypeEnum.PhysicalPixels` - Use this option to run workflows on devices with similar density screens.
  Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.

waitTime Float (Optional): Specifies the duration of time(in seconds) spent waiting during transitions between points.

options MobileOptions.PositionalSwipeOptions (Optional): Specifies the MobileOptions.DrawPatternOptions for the DrawPattern action. Default value is null.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated