Package-level declarations
Types
An immutable snapshot of a ScopeStack: the accumulated scope defaults plus the effective screen / section. Use enrich to apply it to an event's properties.
An opaque token identifying a pushed frame, for ScopeStack.update, ScopeStack.remove, ScopeStack.maskScreen and ScopeStack.setActive.
The ambient scope + screen context of the currently visible UI, as a stack of pushed frames.
The most recently viewed screen, so the next screen view can be enriched with previous_screen and an autocaptured event can fall back to a screen when no ScopeStack frame supplies one.
Properties
The ScopeStack frame of the surface that owns this view's subtree, or null if none has claimed it. Shared between Autograph's own Android pipelines and not a supported public API.
The event name an autocaptured tap is reported under when the caller doesn't choose one.
Functions
Registers listener on this view, to run whenever a surface above the view claims or releases its root (notifyAutographScopeOwnerChanged). The Compose provider uses it to re-link its root frame under the surface that now hosts it; without it, a composition that existed before the native capture was installed stays a root — and a root under no boundary applies to every event, so an off-screen pager page would lend its screen to a tap on the page beside it.
The origin for an event on this view: its own autographScopeOwner, or the nearest ancestor's, or null when no surface up the tree has claimed one (no native capture installed, or a window — a Popup, a Dialog — whose view tree is not under any surface's root).
Records name as the current screen and emits a Screen Viewed for it, carrying the screen it replaced as previous_screen. The one place that couples recording with emitting, so every native screen-capture caller — the iOS UIKit swizzle, the iOS explicit SwiftUI path, and the Android Activity/Fragment lifecycle capture — cannot drift on the order or on the self-previous guard.
Runs every listener registered with addAutographScopeOwnerListener in this view's subtree, this view included. Called by the native screen capture after it claims or releases a surface's root view. The walk is the same one the capture already makes over a new surface's view tree; a listener that throws is swallowed so a lifecycle callback never crashes the host app.
Removes a listener added with addAutographScopeOwnerListener; a no-op if it is not registered.