add longpress definition

This commit is contained in:
2022-07-17 19:52:39 -07:00
parent 5dde50c406
commit dc38b15f23

View File

@@ -19,6 +19,14 @@ func (d Device) Tap(ctx context.Context, X, Y int) error {
return nil return nil
} }
// Simulates a long press
//
// Under the hood, this calls swipe with the same start and end coordinates
// with a duration of 250ms
func (d Device) LongPress(ctx context.Context, X, Y int) error {
return nil
}
func (d Device) Swipe(ctx context.Context, X1, Y1, X2, Y2 int, duration time.Duration) error { func (d Device) Swipe(ctx context.Context, X1, Y1, X2, Y2 int, duration time.Duration) error {
return nil return nil
} }