共用方式為


AndroidApp.DragAndDrop 方法

定義

多載

DragAndDrop(String, String, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

> 在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>)

> 在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

DragAndDrop(String, String)

> 在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

DragAndDrop(String, String, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

public void DragAndDrop (string fromMarked, string toMarked, Xamarin.UITest.Android.DropLocation placement = Xamarin.UITest.Android.DropLocation.OnTop, Nullable<TimeSpan> holdTime = null, Nullable<TimeSpan> hangTime = null, int steps = 1, Action afterStepAction = null);
member this.DragAndDrop : string * string * Xamarin.UITest.Android.DropLocation * Nullable<TimeSpan> * Nullable<TimeSpan> * int * Action -> unit
Public Sub DragAndDrop (fromMarked As String, toMarked As String, Optional placement As DropLocation = Xamarin.UITest.Android.DropLocation.OnTop, Optional holdTime As Nullable(Of TimeSpan) = null, Optional hangTime As Nullable(Of TimeSpan) = null, Optional steps As Integer = 1, Optional afterStepAction As Action = null)

參數

fromMarked
String

標示要拖曳專案的選取器。 如需相關資訊,請參閱 Marked(String)

toMarked
String

標示要卸載專案的位置選取器。 如需相關資訊,請參閱 Marked(String)

placement
DropLocation

相對於查詢的 上方、上方、下方、左、右方) 置 (位置

holdTime
Nullable<TimeSpan>

從查詢保留的時間

hangTime
Nullable<TimeSpan>

保留在 要查詢的上方的時間

steps
Int32

拖曳專案所需的步驟數目,拖曳速度較慢

afterStepAction
Action

每個步驟之後要執行的動作

適用於

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

> 在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

public void DragAndDrop (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> from, Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> to, Xamarin.UITest.Android.DropLocation placement = Xamarin.UITest.Android.DropLocation.OnTop, Nullable<TimeSpan> holdTime = null, Nullable<TimeSpan> hangTime = null, int steps = 1, Action afterStepAction = null);
member this.DragAndDrop : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Xamarin.UITest.Android.DropLocation * Nullable<TimeSpan> * Nullable<TimeSpan> * int * Action -> unit
Public Sub DragAndDrop (from As Func(Of AppQuery, AppQuery), to As Func(Of AppQuery, AppQuery), Optional placement As DropLocation = Xamarin.UITest.Android.DropLocation.OnTop, Optional holdTime As Nullable(Of TimeSpan) = null, Optional hangTime As Nullable(Of TimeSpan) = null, Optional steps As Integer = 1, Optional afterStepAction As Action = null)

參數

from
Func<AppQuery,AppQuery>

要拖曳之專案的查詢

to
Func<AppQuery,AppQuery>

要卸載之專案的位置查詢

placement
DropLocation

相對於查詢的 上方、上方、下方、左、右方) 置 (位置

holdTime
Nullable<TimeSpan>

從查詢保留的時間

hangTime
Nullable<TimeSpan>

保留在 要查詢的上方的時間

steps
Int32

拖曳專案所需的步驟數目,拖曳速度較慢

afterStepAction
Action

每個步驟之後要執行的動作

適用於

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>)

> 在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

public void DragAndDrop (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> from, Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> to);
abstract member DragAndDrop : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> -> unit
override this.DragAndDrop : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> -> unit
Public Sub DragAndDrop (from As Func(Of AppQuery, AppQuery), to As Func(Of AppQuery, AppQuery))

參數

from
Func<AppQuery,AppQuery>

要拖曳之專案的查詢

to
Func<AppQuery,AppQuery>

要卸載之專案的位置查詢

實作

適用於

DragAndDrop(String, String)

> 在專案上執行長觸控,接著將專案拖曳至第二個專案並卸載

public void DragAndDrop (string from, string to);
abstract member DragAndDrop : string * string -> unit
override this.DragAndDrop : string * string -> unit
Public Sub DragAndDrop (from As String, to As String)

參數

from
String

從 元素標示的選取器。

to
String

標記為 to 元素的選取器。

實作

適用於