Skip to main content

screenshot_bytes

Function screenshot_bytes 

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

Capture a screenshot from an iOS simulator 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 simulator is not available.