> ## 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 CTA on offer cards at runtime

Controls whether the claim call to action 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

```tsx theme={null}
setClaimEnabled(enabled: boolean): Promise<{ success: boolean }>
```

Defaults to `true`, and is runtime-mutable by design: call it any time after [`configure()`](./configure), including while a sheet is on screen.

## Usage

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

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

<Note>
  In 1.x this lived on `Encore.placements`. Both native SDKs deleted the 1.x placements manager in 2.0 and folded its one surviving concern onto the facade, so the bridge did the same. See [Updating to 2.x](../guides/updating-to-2-x).
</Note>

## Related

* [placement()](./placement), the sheet this gate applies to.
* [PresentationResult](./presentation-result), where a suppressed claim shows up as `advertiser: { type: 'not_attempted' }`.
