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, and this page is available as Markdown at /next/zh/api/lynx-api/main-thread/lynx-stop-exposure.md.
Lynx
  • 简体中文
  • lynx: stopExposure() static method

    lynx.stopExposure 方法可以被用来停止曝光检测,即不再检测目标节点的可见性,后续不会再触发曝光/反曝光事件,可以调用 lynx.resumeExposure 来重新开始曝光检测。

    语法

    stopExposure(options?: StopExposureOptions): void;

    参数

    options

    interface StopExposureOptions {
      sendEvent?: boolean;
    }

    指定 lynx.stopExposure 的行为:

    • sendEvent:指定是否发送目前所有可见目标节点的反曝光事件,默认为 true

    返回值

    无(undefined)。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。