Api

Trait Api 

Source
pub trait Api {
    // Required methods
    fn get_active_window(&self) -> Result<WindowInfo>;
    fn get_open_windows(&self) -> Result<Vec<WindowInfo>>;
    fn get_app_icon(&self, window_info: &WindowInfo) -> Result<IconInfo>;
    fn get_browser_url(&self, window_info: &WindowInfo) -> Result<String>;
}

Required Methods§

Source

fn get_active_window(&self) -> Result<WindowInfo>

Return information of current active Window

Source

fn get_open_windows(&self) -> Result<Vec<WindowInfo>>

Return Array of open windows information

Source

fn get_app_icon(&self, window_info: &WindowInfo) -> Result<IconInfo>

Return a base64 icon from window_info.info.path

Source

fn get_browser_url(&self, window_info: &WindowInfo) -> Result<String>

Return a String if the window is a browser and can recover url from it (Work only with Windows 10/11 and Darwin systems)

Implementors§