mirror of
https://github.com/taigrr/adb.git
synced 2026-04-02 02:58:42 -07:00
add longpress definition
This commit is contained in:
8
shell.go
8
shell.go
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user