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

# lynx: stopExposure() static method

APISummary
`lynx.stopExposure` 方法可以被用来停止曝光检测，即不再检测目标节点的可见性，后续不会再触发曝光/反曝光事件，可以调用 [lynx.resumeExposure](/next/zh/api/lynx-api/lynx/lynx-resume-exposure.md) 来重新开始曝光检测。

## 语法

```ts
stopExposure(options?: StopExposureOptions): void;
```

### 参数

#### options

```ts
interface StopExposureOptions {
  sendEvent?: boolean;
}
```

指定 `lynx.stopExposure` 的行为：

- `sendEvent`：指定是否发送目前所有可见目标节点的反曝光事件，默认为 `true`。

### 返回值

无（`undefined`）。

## 兼容性

**Compatibility Table**

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

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| stopExposure | Yes (2.9) | Yes (3.4) | Yes (2.9) | Yes (3.5) | Yes (3.5) | Yes |

**`stopExposure`**

Stop exposure detection, that is, the visibility of the target node will no longer be detected, and exposure/anti-exposure events will no longer be triggered in the future.

