> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encorekit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# setClaimEnabled()

> Gray out and disable the claim button on offer cards at runtime

Controls whether the claim button on offer cards is tappable. Set it to `false` to gray out and disable the claim button while leaving the rest of the presentation intact.

## Signature

```dart theme={null}
Future<void> setClaimEnabled(bool enabled)
```

Defaults to `true`. Call it any time after [`configure()`](./configure); the value applies from the next presentation, so a sheet already on screen keeps the state it opened with. There is no getter; track the value in your app if you need to read it back.

## Parameters

| Name      | Type   | Description                                                          |
| --------- | ------ | -------------------------------------------------------------------- |
| `enabled` | `bool` | `true` makes the claim button tappable; `false` dims and disables it |

## Usage

```dart theme={null}
// The user is in a state where claiming would be wrong (for example,
// mid-checkout in your own flow). Dim the claim button without hiding the offer.
await Encore.shared.setClaimEnabled(false);

// Restore it when they leave that state.
await Encore.shared.setClaimEnabled(true);
```

## Related

* [placement()](./placement): the sheet this setting applies to
* [EncorePresentationResult](./presentation-result): a suppressed claim shows up as `EncoreAdvertiserNotAttempted`
