AndroidApp.DragAndDrop 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
相對於查詢的 上方、上方、下方、左、右方) 置 (位置
- 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)
參數
- placement
- DropLocation
相對於查詢的 上方、上方、下方、左、右方) 置 (位置
- 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))