feat(driver): add LongPress to DeviceDriver interface

This commit is contained in:
pj committed 2026-05-31 18:01:24 +05:30
1 parent 1ffca2e560
commit 55352f72c5
1 file changed
+1
+1
View File
@@ -19,6 +19,7 @@ type DeviceDriver interface {
InputText(ctx context.Context, text string) error InputText(ctx context.Context, text string) error
Swipe(ctx context.Context, fromX, fromY, toX, toY int, duration time.Duration) error Swipe(ctx context.Context, fromX, fromY, toX, toY int, duration time.Duration) error
PressKey(ctx context.Context, key string) error PressKey(ctx context.Context, key string) error
LongPress(ctx context.Context, x, y int) error
Hierarchy(ctx context.Context) (string, error) Hierarchy(ctx context.Context) (string, error)
Screenshot(ctx context.Context) (Image, error) Screenshot(ctx context.Context) (Image, error)