UiPath Documentation
activities
latest
false

UI Automation アクティビティ

最終更新日時 2026年5月8日

DrawPattern

デバイス画面上で、複数の点でマークされたパスを描画します。フィンガー パスの点は、デバイス画面上を指がなぞるルートから記録されます。複数のフィンガー パスを追加して、複数の指を使用する画面操作をシミュレートできます。

定義

名前空間: UiPath.MobileAutomation.API.Models

アセンブリ: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

オーバー ロード

オーバーロード説明
DrawPattern(FingerPath, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)デバイス画面上で、複数の点でマークされた単一のパスを描画します。
DrawPattern(List<FingerPath>, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)デバイス画面上で、複数の点でマークされた複数のパスを描画します。ユーザーがデバイス画面上で 2 本の指を必要とするアクションを実行するシナリオに適しています。

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

デバイス画面上で、複数の点でマークされた単一のパスを描画します。

DrawPattern(
	    FingerPath fingerPath,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions.DrawPatternOptions options = null
DrawPattern(
	    FingerPath fingerPath,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions.DrawPatternOptions options = null

fingerPath FingerPath : デバイス画面上の指の軌跡から記録された X-Y 軸上のすべての点です。FingerPath クラスの FingerPath ConstructorFingerPath Methodsを使用してフィンガー パスを作成する方法について詳しくは、「FingerPath クラス」をご覧ください。

coordinatesType CoordinatesTypeEnum (任意): 指の座標を ElementExists API のCoordinatesTypeEnumオブジェクトとして指定します。既定値は null です。使用可能な種類は次のとおりです。

* `PhysicalPixels`
* `DeviceIndependentPixels`
* `PhysicalPixels`
* `DeviceIndependentPixels`

pressType PressTypeEnum (オプション) : 上記パラメータに入力した CoordinatesTypeEnum のタッチタイプを指定します。既定値は CoordinatesTypeEnum.DeviceIndependentPixelsです。使用できるタッチの種類は次のとおりです。

* `ShortPress`
* `LongPress`
* `ShortPress`
* `LongPress`

waitTime Float (任意) : フィンガー パス内の点が完了するまで待機する時間 (ミリ秒単位)。:::tip 期待どおりに動作させるには、iOS デバイスのwaitTime0 より高くする必要があります。:::

options MobileOptions.DrawPatternOptions (任意) : DrawPattern アクションの MobileOptions.DrawPatternOptions を指定します。既定値は null です。

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

デバイス画面上で、複数の点でマークされた複数のパスを描画します。ユーザーがデバイス画面上で 2 本の指を必要とするアクションを実行するシナリオに適しています。

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
)

fingerPathsList<FingerPath> : X-Y 軸上の画面上の複数の指によって作成されたフィンガー パスのリストです (たとえば、ズームインまたはズームアウトのシナリオでは、ユーザーはアクションを実行するために 2 本の指で画面をタッチします)。FingerPath クラスの FingerPath ConstructorFingerPath Methodsを使用してフィンガー パスを作成する方法について詳しくは、「FingerPath クラス」をご覧ください。

coordinatesType CoordinatesTypeEnum (任意): 指の座標を ElementExists API の CoordinatesTypeEnum オブジェクトとして指定します。既定値は null です。

pressType PressTypeEnum (オプション) : 上記パラメータに入力した CoordinatesTypeEnum のタッチタイプを指定します。既定値は PressTypeEnum.ShortPressです。使用できるタッチの種類は次のとおりです。

* `ShortPress`
* `LongPress`
* `ShortPress`
* `LongPress`

waitTime Float (任意) : フィンガー パス内の点が完了するまで待機する時間 (ミリ秒単位)。:::tip 期待どおりに動作させるには、iOS デバイスのwaitTime0 より高くする必要があります。:::

options MobileOptions.DrawPatternOptions (任意) : DrawPattern アクションの MobileOptions.DrawPatternOptions を指定します。既定値は null です。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得