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

    Type Alias GetBooleanResponse

    GetBooleanResponse: BridgeResponse<200 | 400 | 500 | 501, GetBooleanResult>

    Response when getting a boolean value.

    This response can have the following status codes:

    • 200: Value retrieved successfully. The result contains the boolean value or null if not found.
    • 400: Missing required parameters - key not provided.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.

    Success response (200) - value exists:

    {
    status_code: 200,
    result: { value: true }
    }

    Success response (200) - value not found:

    {
    status_code: 200,
    result: { value: null }
    }

    Bad request response (400):

    {
    status_code: 400,
    error: 'Missing required parameters'
    }

    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'
    }