MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / screenshot_png

Method screenshot_png

packages/server/src/android.rs:348–351  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

346 }
347
348 pub fn screenshot_png(&self, id: &str) -> Result<Vec<u8>, AppError> {
349 let serial = self.serial_for_id(id)?;
350 self.run_adb_bytes(["-s", &serial, "exec-out", "screencap", "-p"])
351 }
352
353 pub fn install_app(&self, id: &str, app_path: &str) -> Result<(), AppError> {
354 if !app_path.ends_with(".apk") {

Callers

nothing calls this directly

Calls 2

serial_for_idMethod · 0.80
run_adb_bytesMethod · 0.80

Tested by

no test coverage detected