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§
Sourcefn get_active_window(&self) -> Result<WindowInfo>
fn get_active_window(&self) -> Result<WindowInfo>
Return information of current active Window
Sourcefn get_open_windows(&self) -> Result<Vec<WindowInfo>>
fn get_open_windows(&self) -> Result<Vec<WindowInfo>>
Return Array of open windows information
Sourcefn get_app_icon(&self, window_info: &WindowInfo) -> Result<IconInfo>
fn get_app_icon(&self, window_info: &WindowInfo) -> Result<IconInfo>
Return a base64 icon from window_info.info.path
Sourcefn get_browser_url(&self, window_info: &WindowInfo) -> Result<String>
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)