@grabjs/superapp-sdk
    Preparing search index...

    Type Alias DownloadFileResponse

    DownloadFileResponse:
        | { status_code: 204 }
        | { error: string; status_code: 400 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }

    Response when requesting a native file download.

    This response can have the following status codes:

    • 204: File downloaded successfully.
    • 400: Invalid request parameters such as invalid file URL, invalid domain, or missing file name.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.