Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v3.26.105
type Client interface {
GetAddress() string
GetPhysicalSize(ctx context.Context) (width int, height int, err error)
Screenshot(ctx context.Context, targetPath string) error
// Tap 点击.
Tap(ctx context.Context, x, y int) error
// LongPress 长按.
LongPress(ctx context.Context, x, y int, duration int) error
// Swipe 滑动.
Swipe(ctx context.Context, x1, y1, x2, y2 int, duration int) error
TapAsHumanBeings(ctx context.Context, x, y int, axisOffset int) error
LongPressAsHumanBeings(ctx context.Context, x, y int, duration int, axisOffset, timeOffset int) error
SwipeAsHumanBeings(ctx context.Context, x1, y1, x2, y2 int, duration int, axisOffset, timeOffset int) error
}
Click to show internal directories.
Click to hide internal directories.