Skip to main content

screenshot_bytes

Function screenshot_bytes 

Source
pub async fn screenshot_bytes(host: &Host, device_id: &str) -> Result<Vec<u8>>
Expand description

Capture a screenshot from an Android device and return the raw PNG bytes.

This is used for the diff workflow where we need in-memory screenshots.

ยงErrors

Returns an error if the screenshot command fails or the device is not available.