> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# lynx: setObserverFrameRate() static method

APISummary
The `lynx.setObserverFrameRate` method can be used to set the frequency of exposure detection.

## grammar

```ts
setObserverFrameRate(options?: Options): void;
```

### Parameters

#### options

```ts
interface Options {
  forPageRect?: number;
  forExposureCheck?: number;
}
```

Specify exposure detection frequency:

- `forPageRect`: unit `fps`, specifies the minimum time interval for detecting `LynxView` position changes. Defaults to 20.
- `forExposureCheck`: unit `fps`, specifies the minimum time interval for detecting the visibility of the target node. Defaults to 20.

### return value

None (`undefined`).

### Precautions

When `LynxView` will not have position changes, such as full-page scenarios, you can set `forPageRect` to `0` to stop detecting position changes of `LynxView`. However, in the card scene, setting `forPageRect` to `0` will cause the exposure of the `Lynx` card to fail in the sliding scene. For details, please refer to [Exposure Ability](/next/guide/interaction/visibility-detection/exposure-ability.md).

## Compatibility

**Compatibility Table**

**Query:** `lynx-api.lynx.setObserverFrameRate`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/setObserverFrameRate.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| setObserverFrameRate | Yes (2.15) | Yes (3.4) | Yes (2.15) | Yes (3.5) | Yes (3.5) | No |

**`setObserverFrameRate`**

Set the frequency of exposure detection.

