mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +00:00
feat(driver): add EraseText to the device driver surface
This commit is contained in:
1 parent
72055e5d9f
commit
41511a2a32
4 files changed
+49
-13
No files matched your search
@@ -137,6 +137,11 @@ func (c *Client) InputText(ctx context.Context, text string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Client) EraseText(ctx context.Context, characterCount int) error {
|
||||
_, err := c.stub.EraseText(ctx, &driverpb.EraseTextRequest{CharacterCount: int32(characterCount)})
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Client) Swipe(ctx context.Context, fromX, fromY, toX, toY int, duration time.Duration) error {
|
||||
_, err := c.stub.Swipe(ctx, &driverpb.SwipeRequest{
|
||||
From: &driverpb.Point{X: int32(fromX), Y: int32(fromY)},
|
||||
|
||||
Reference in new issue
Block a user