Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

Batched data snapshot of SCShareableContent.

Returned by SCShareableContent::snapshot. Every field on every display / window / running application is fetched in one Swift FFI call per category (instead of 1 + N + 6N for the per-element accessor pattern), saving ~70 µs on a system with ~220 windows.

Structs§

ApplicationSnapshot
Plain data describing one running application.
ContentSnapshot
All shareable content collected in one batched FFI round-trip.
DisplaySnapshot
Plain data describing one display.
WindowSnapshot
Plain data describing one window.