Module content_filter

Module content_filter 

Source
Expand description

Content filter for ScreenCaptureKit streams

This module provides a wrapper around SCContentFilter that uses the Swift bridge.

§Examples

use screencapturekit::shareable_content::SCShareableContent;
use screencapturekit::stream::content_filter::SCContentFilter;

let content = SCShareableContent::get()?;
let display = &content.displays()[0];

// Capture entire display
let filter = SCContentFilter::builder()
    .display(display)
    .exclude_windows(&[])
    .build();

Structs§

SCContentFilter
Content filter for ScreenCaptureKit streams
SCContentFilterBuilder
Builder for creating SCContentFilter instances

Type Aliases§

SCContentFilterRef