gbox-sdk
    Preparing search index...

    Interface ActionSwipeSimple

    interface ActionSwipeSimple {
        direction:
            | "left"
            | "right"
            | "up"
            | "down"
            | "upLeft"
            | "upRight"
            | "downLeft"
            | "downRight";
        distance?: number
        | "tiny"
        | "short"
        | "medium"
        | "long";
        duration?: string;
        location?: string;
        options?: Omit<
            undefined
            | GboxClient.V1.Boxes.ActionCommonOptions,
            "screenshot",
        > & ActionOptionsOverride;
        screenshotDelay?:
            | `${number}h`
            | `${number}m`
            | `${number}s`
            | `${number}ms`;
    }

    Hierarchy

    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 | "tiny" | "short" | "medium" | "long"

    Distance of the swipe. Can be either a number (in pixels) or a predefined enum value (tiny, short, medium, long). 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

    location?: string

    Natural language description of the location where the swipe should originate. If not provided, the swipe will be performed from the center of the screen.

    options?: Omit<
        undefined
        | GboxClient.V1.Boxes.ActionCommonOptions,
        "screenshot",
    > & ActionOptionsOverride

    Action common options

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