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

    Type Alias SetBackgroundColorResponse

    SetBackgroundColorResponse: BridgeResponse<
        204
        | 400
        | 500
        | 501,
        SetBackgroundColorResult,
    >

    Response when setting the background color.

    This response can have the following status codes:

    • 204: Background color set successfully.
    • 400: Invalid background color format.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.

    Success response (204):

    { status_code: 204 }
    

    Bad request response (400):

    {
    status_code: 400,
    error: 'Invalid background color format'
    }

    Internal server error response (500):

    {
    status_code: 500,
    error: 'Internal server error'
    }

    Not implemented response (501) - outside Grab app:

    {
    status_code: 501,
    error: 'Not implemented: This method requires the Grab app environment'
    }