AutographIgnoredBoundsRegistration

Excludes a rectangular region of the window from native tap autocapture — the mechanism behind SwiftUI's .autographIgnore(). Keep it and update its rect as the content moves (scroll, layout), then unregister when the content leaves. A privacy control; only ambient autocapture is suppressed. Main thread only.

Functions

Link copied to clipboard
fun clear()

Excludes nothing for now, while STAYING registered — for content that is momentarily off-layout (collapsed to zero size, hidden) but still on-window, so a later update revives it. Distinct from unregister, which removes the entry entirely (used only when the content leaves the window). Not the same as update-ing an empty rect: a zero-size AxRect still sits at a point and would deafen a tap there, whereas a null rect matches nothing. Idempotent.

Link copied to clipboard

Stops excluding this region. Idempotent.

Link copied to clipboard
fun update(left: Float, top: Float, right: Float, bottom: Float)

Updates the excluded region to left/top/right/bottom in window pixels.