lynx: stopExposure() static method

The lynx.stopExposure method can be used to 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. You can call [lynx.resumeExposure](./lynx-resume-exposure .mdx) to restart exposure detection.

Syntax

stopExposure(options?: StopExposureOptions): void;

Parameters

options

interface StopExposureOptions {
  sendEvent?: boolean;
}

Specify the behavior of lynx.stopExposure:

  • sendEvent: Specify whether to send anti-exposure events of all currently visible target nodes. Defaults to true.

return value

None (undefined).

Compatibility

Loading...

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.