activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2026年1月14日

PositionalSwipe

滑动到屏幕上包含起点和终点的预定义位置。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 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:设置在设备屏幕上进行位置滑动的起点。

endSwipePoint: 设置在设备屏幕上进行位置滑动的结束点。

coordinatesType CoordinatesTypeEnum (可选):指定startSwipePointendSwipePoint的坐标类型。默认值为CoordinatesTypeEnum.DeviceIndependentPixels 。可用选项包括:

* `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 (可选):指定在点之间转换期间等待的持续时间(以秒为单位)。

options MobileOptions.PositionalSwipeOptions (可选):为DrawPattern操作指定MobileOptions.DrawPatternOptions 。默认值为 null。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。