UiPath Documentation
activities
latest
false
UI Automation アクティビティ
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

DrawPattern

モバイル オートメーションのコード化されたオートメーション API の 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 フィンガー パス: デバイス画面上の指の軌跡から記録された 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 (任意): フィンガー パス内の点が完了するまで待機する時間 (ミリ秒単位) です。:::ヒント 期待どおりに動作するには、waitTime を iOS デバイスの 0 よりも大きくする必要があります。:::

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
)

fingerPaths List<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 (任意): フィンガー パス内の点が完了するまで待機する時間 (ミリ秒単位) です。:::ヒント 期待どおりに動作するには、waitTime を iOS デバイスの 0 よりも大きくする必要があります。:::

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

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得