pub struct SCRunningApplication(/* private fields */);Expand description
Wrapper around SCRunningApplication from ScreenCaptureKit
Represents a running application that can be captured.
§Examples
use screencapturekit::shareable_content::SCShareableContent;
let content = SCShareableContent::get()?;
for app in content.applications() {
println!("App: {} (PID: {})",
app.application_name(),
app.process_id()
);
}Implementations§
Source§impl SCRunningApplication
impl SCRunningApplication
Sourcepub fn process_id(&self) -> i32
pub fn process_id(&self) -> i32
Get process ID
Sourcepub fn application_name(&self) -> String
pub fn application_name(&self) -> String
Get application name
Sourcepub fn bundle_identifier(&self) -> String
pub fn bundle_identifier(&self) -> String
Get bundle identifier
Trait Implementations§
Source§impl Clone for SCRunningApplication
impl Clone for SCRunningApplication
Source§impl Debug for SCRunningApplication
impl Debug for SCRunningApplication
Source§impl Display for SCRunningApplication
impl Display for SCRunningApplication
Source§impl Drop for SCRunningApplication
impl Drop for SCRunningApplication
Source§impl Hash for SCRunningApplication
impl Hash for SCRunningApplication
Source§impl PartialEq for SCRunningApplication
impl PartialEq for SCRunningApplication
impl Eq for SCRunningApplication
impl Send for SCRunningApplication
impl Sync for SCRunningApplication
Auto Trait Implementations§
impl Freeze for SCRunningApplication
impl RefUnwindSafe for SCRunningApplication
impl Unpin for SCRunningApplication
impl UnwindSafe for SCRunningApplication
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more