From dc38b15f23f0cd6884b3dfba303071d52da9be2f Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sun, 17 Jul 2022 19:52:39 -0700 Subject: [PATCH] add longpress definition --- shell.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shell.go b/shell.go index 33b4adc..36d37c8 100644 --- a/shell.go +++ b/shell.go @@ -19,6 +19,14 @@ func (d Device) Tap(ctx context.Context, X, Y int) error { 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 { return nil }