AndroidApp.DragAndDrop Method

Definition

Overloads

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

Performs a long touch on an item, followed by dragging the item to a second item and dropping it

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

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

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

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

DragAndDrop(String, String)

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

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

Performs a long touch on an item, followed by dragging the item to a second item and dropping it

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)

Parameters

fromMarked
String

Marked selector for the item to be dragged. See Marked(String) for more information.

toMarked
String

Marked selector for the location for the item to be dropped. See Marked(String) for more information.

placement
DropLocation

The placement of the drop (on top, above, below, left, right) relative to the to query

holdTime
Nullable<TimeSpan>

Time to hold on the from query

hangTime
Nullable<TimeSpan>

Time to hold above the to query

steps
Int32

The number of steps desired to drag the item, higher for a slower drag

afterStepAction
Action

Action to perform after each step

Applies to

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

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

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)

Parameters

from
Func<AppQuery,AppQuery>

The query of the item to be dragged

to
Func<AppQuery,AppQuery>

The query of the location for the item to be dropped

placement
DropLocation

The placement of the drop (on top, above, below, left, right) relative to the to query

holdTime
Nullable<TimeSpan>

Time to hold on the from query

hangTime
Nullable<TimeSpan>

Time to hold above the to query

steps
Int32

The number of steps desired to drag the item, higher for a slower drag

afterStepAction
Action

Action to perform after each step

Applies to

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

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

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))

Parameters

from
Func<AppQuery,AppQuery>

The query of the item to be dragged

to
Func<AppQuery,AppQuery>

The query of the location for the item to be dropped

Implements

Applies to

DragAndDrop(String, String)

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

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)

Parameters

from
String

Marked selector of the from element.

to
String

Marked selector of the to element.

Implements

Applies to