アクティビティ
最新
バナーの背景画像
UI Automation のアクティビティ
最終更新日 2024年4月26日

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 = nullDrawPattern(
	    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
pressType PressTypeEnum (任意)
上記パラメーターに入力した CoordinatesTypeEnum のタッチの種類を指定します。既定値は CoordinatesTypeEnum.DeviceIndependentPixels です。使用できるタッチの種類は次のとおりです。
  • ShortPress
  • LongPress
waitTime Float (任意)
フィンガー パス内の点が完了するまで待機する時間 (ミリ秒単位) です。
ヒント: iOS デバイスで期待どおりに動作させるには、waitTime プロパティの値を 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
waitTime Float (任意)
フィンガー パス内の点が完了するまで待機する時間 (ミリ秒単位) です。
ヒント: iOS デバイスで期待どおりに動作させるには、waitTime プロパティの値を 0 より大きくする必要があります。
options MobileOptions.DrawPatternOptions (任意)
DrawPattern アクションの MobileOptions.DrawPatternOptions を指定します。既定値は null です。

Was this page helpful?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
UiPath ロゴ (白)
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.