gbox-sdk
    Preparing search index...

    Interface ActionSwipeSimple

    interface ActionSwipeSimple {
        direction:
            | "left"
            | "right"
            | "up"
            | "down"
            | "upLeft"
            | "upRight"
            | "downLeft"
            | "downRight";
        distance?: number;
        duration?: string;
        includeScreenshot?: boolean;
        outputFormat?: "base64"
        | "storageKey";
        screenshotDelay?:
            | `${number}h`
            | `${number}m`
            | `${number}s`
            | `${number}ms`;
    }

    Hierarchy (View Summary)

    Index

    Properties

    direction:
        | "left"
        | "right"
        | "up"
        | "down"
        | "upLeft"
        | "upRight"
        | "downLeft"
        | "downRight"

    Direction to swipe. The gesture will be performed from the center of the screen towards this direction.

    distance?: number

    Distance of the swipe in pixels. If not provided, the swipe will be performed from the center of the screen to the screen edge

    duration?: string

    Duration of the swipe

    Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 500ms

    includeScreenshot?: boolean

    Whether to include screenshots in the action response. If false, the screenshot object will still be returned but with empty URIs. Default is false.

    outputFormat?: "base64" | "storageKey"

    Type of the URI. default is base64.

    screenshotDelay?: `${number}h` | `${number}m` | `${number}s` | `${number}ms`

    Delay after performing the action, before taking the final screenshot.

    Execution flow:

    1. Take screenshot before action
    2. Perform the action
    3. Wait for screenshotDelay (this parameter)
    4. Take screenshot after action

    Example: '500ms' means wait 500ms after the action before capturing the final screenshot.

    Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 500ms Maximum allowed: 30s