Skip to content

UsePlacementResult

UsePlacementResult = object

Result returned by the usePlacement hook.

ctaClick: (ctaTarget?, metadata?) => Promise<void>

Activate an authored CTA index, or record a legacy target-only click.

string | number

SdkMetadata

Promise<void>


exposureBasis: ExposureBasis | null

How the placement’s visual root was exposed, or null before it enters the viewport (plan 144 TASK-9). 'render_fallback' when IntersectionObserver is unavailable (AC-10). Only meaningful once UsePlacementResult.exposureRef is attached.


exposureRef: (element) => void

Ref callback to attach to the placement’s true visual root (plan 144 TASK-9). RevTurbine observes when that element enters the viewport for viewport-qualified exposure; when IntersectionObserver is unavailable it falls back to render (exposure_basis: 'render_fallback', AC-10). Attaching it is optional and never adds a wrapper element (REQ-18/REQ-19).

Element | null

void


snooze: (seconds?, ctaIndex?) => Promise<void>

Snooze this occurrence, optionally attributing it to an authored CTA index.

number

number

Promise<void>