Expand description
Async API for ScreenCaptureKit
This module provides async versions of operations when the async feature is enabled.
The async API is executor-agnostic and works with any async runtime (Tokio, async-std, smol, etc.).
§Runtime Agnostic Design
This async API uses only std types and works with any async runtime:
- Uses callback-based Swift FFI for true async operations
- Uses
std::sync::{Arc, Mutex}for synchronization - Uses
std::task::{Poll, Waker}for async primitives - Uses
std::future::Futuretrait
§Examples
use screencapturekit::async_api::AsyncSCShareableContent;
let content = AsyncSCShareableContent::get().await?;
println!("Found {} displays", content.displays().len());Structs§
- AsyncSC
Screenshot Manager - Async wrapper for
SCScreenshotManager - AsyncSC
Shareable Content - Async wrapper for
SCShareableContent - AsyncSC
Shareable Content Options - Options for async shareable content retrieval
- AsyncSC
Stream - Async wrapper for
SCStreamwith integrated frame iteration - Async
Screenshot Future - Future for async screenshot capture
- Async
Shareable Content Future - Future for async shareable content retrieval
- Next
Sample - Future for getting the next sample buffer