MCPcopy Create free account
hub / github.com/zai-org/Open-AutoGLM / swipe

Method swipe

phone_agent/device_factory.py:79–92  ·  view source on GitHub ↗

Swipe from start to end.

(
        self,
        start_x: int,
        start_y: int,
        end_x: int,
        end_y: int,
        duration_ms: int | None = None,
        device_id: str | None = None,
        delay: float | None = None,
    )

Source from the content-addressed store, hash-verified

77 return self.module.long_press(x, y, duration_ms, device_id, delay)
78
79 def swipe(
80 self,
81 start_x: int,
82 start_y: int,
83 end_x: int,
84 end_y: int,
85 duration_ms: int | None = None,
86 device_id: str | None = None,
87 delay: float | None = None,
88 ):
89 """Swipe from start to end."""
90 return self.module.swipe(
91 start_x, start_y, end_x, end_y, duration_ms, device_id, delay
92 )
93
94 def back(self, device_id: str | None = None, delay: float | None = None):
95 """Press back button."""

Callers 1

_handle_swipeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected