swipe
Perform custom drag gestures between two screen points to dismiss cards, pull-to-refresh, draw pattern locks, or drag sliders.
Instructions
Drag between two points, for gestures no named control covers.
Use scroll for ordinary page movement. Reach for this to dismiss a card,
pull to refresh, draw a pattern lock, or drag a slider.
Args: start_x: Horizontal pixel where the finger lands. start_y: Vertical pixel where the finger lands. end_x: Horizontal pixel where the finger lifts. end_y: Vertical pixel where the finger lifts. duration_ms: How long the drag takes. Longer is slower and more likely to be read as a drag rather than a fling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_x | Yes | Horizontal pixel where the drag ends. | |
| end_y | Yes | Vertical pixel where the drag ends. | |
| start_x | Yes | Horizontal pixel where the drag starts. | |
| start_y | Yes | Vertical pixel where the drag starts. | |
| duration_ms | No | How long the drag takes. Slower is more likely to be read as a drag than a fling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |