electron-sys 0.4.0

Raw bindings to the Electron API for projects using wasm-bindgen.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::interface::SourcesOptions;
use js_sys::Promise;
use wasm_bindgen::prelude::*;

#[wasm_bindgen(module = "electron")]
extern {
    #[wasm_bindgen]
    pub type DesktopCapturer;

    #[wasm_bindgen(js_name = "desktopCapturer")]
    pub static desktop_capturer: DesktopCapturer;

    #[must_use]
    #[wasm_bindgen(method, js_name = "getSources")]
    pub fn get_sources(this: &DesktopCapturer, options: SourcesOptions) -> Promise;
}