Module shareable_content

Module shareable_content 

Source
Expand description

Shareable content types - displays, windows, and applications

This module provides access to the system’s displays, windows, and running applications that can be captured by ScreenCaptureKit.

§Examples

use screencapturekit::shareable_content::SCShareableContent;

// Get all shareable content
let content = SCShareableContent::get()?;

// List displays
for display in content.displays() {
    println!("Display {}: {}x{}",
        display.display_id(),
        display.width(),
        display.height()
    );
}

// List windows
for window in content.windows() {
    if let Some(title) = window.title() {
        println!("Window: {}", title);
    }
}

// List applications
for app in content.applications() {
    println!("App: {}", app.application_name());
}

Re-exports§

pub use display::SCDisplay;
pub use running_application::SCRunningApplication;
pub use window::SCWindow;

Modules§

display
running_application
window

Structs§

SCShareableContent
SCShareableContentOptions