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

    Type Alias ScanQRCodeResponse

    ScanQRCodeResponse:
        | { result: { qrCode: string }; status_code: 200 }
        | { status_code: 204 }
        | { error: string; status_code: 400 }
        | { error: string; status_code: 403 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }

    Response when scanning a QR code.

    This response can have the following status codes:

    • 200: Successfully scanned QR code. The result contains the scanned QR code data.
    • 204: User cancelled the QR code scanning. No result data is returned.
    • 400: Bad request - invalid request parameters.
    • 403: Camera permission is not enabled for the Grab app.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.