@@ -17,7 +17,7 @@ Capture screen content, windows, and applications with high performance and low
1717- 🎥 ** Screen & Window Capture** - Capture displays, windows, or specific applications
1818- 🔊 ** Audio Capture** - Capture system audio and microphone input
1919- ⚡ ** Real-time Processing** - High-performance frame callbacks with custom dispatch queues
20- - 🏗️ ** Builder Pattern API** - Clean, type-safe configuration with ` ::builder() ` and ` ::build() `
20+ - 🏗️ ** Builder Pattern API** - Clean, type-safe configuration with ` ::builder() `
2121- 🔄 ** Async Support** - Runtime-agnostic async API (works with Tokio, async-std, smol, etc.)
2222- 🎨 ** IOSurface Access** - Zero-copy GPU texture access for Metal/OpenGL
2323- 🛡️ ** Memory Safe** - Proper reference counting and leak-free by design
@@ -67,7 +67,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
6767 let display = & content . displays ()[0 ];
6868
6969 // Configure capture
70- let filter = SCContentFilter :: build ()
70+ let filter = SCContentFilter :: builder ()
7171 . display (display )
7272 . exclude_windows (& [])
7373 . build ();
@@ -104,7 +104,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
104104 let display = & content . displays ()[0 ];
105105
106106 // Create filter and config
107- let filter = SCContentFilter :: build ()
107+ let filter = SCContentFilter :: builder ()
108108 . display (display )
109109 . exclude_windows (& [])
110110 . build ();
@@ -145,7 +145,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
145145 . ok_or (" Safari window not found" )? ;
146146
147147 // Capture window with audio
148- let filter = SCContentFilter :: build ()
148+ let filter = SCContentFilter :: builder ()
149149 . window (window )
150150 . build ();
151151
@@ -173,7 +173,7 @@ All types use a consistent builder pattern with a final `.build()` call:
173173
174174``` rust
175175// Content filters
176- let filter = SCContentFilter :: build ()
176+ let filter = SCContentFilter :: builder ()
177177 . display (& display )
178178 . exclude_windows (& windows )
179179 . build ();
@@ -401,7 +401,7 @@ screencapturekit/
401401
402402Contributions welcome! Please:
403403
404- 1 . Follow existing code patterns (builder pattern with ` ::builder() ` and ` ::build() ` )
404+ 1 . Follow existing code patterns (builder pattern with ` ::builder() ` )
4054052 . Add tests for new functionality
4064063 . Run ` cargo test ` and ` cargo clippy `
4074074 . Update documentation
0 commit comments