xcap 0.9.5

XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, Windows, and HarmonyOS (OpenHarmony/OHOS). XCap supports screenshot and video recording (WIP).
1
2
3
4
5
6
7
8
9
10
11
12
13
// HarmonyOS (OpenHarmony) platform implementation.
// Screen capture in this module uses API 14 PixelMap capture and expects
// `ohos.permission.CUSTOM_SCREEN_CAPTURE` to be granted by the app layer.

mod capture;
mod ffi;
pub mod impl_monitor;
pub mod impl_video_recorder;
pub mod impl_window;

// Keep symbol export layout consistent with other platform modules.
#[allow(unused_imports)]
pub(crate) use impl_monitor::ImplMonitor;