MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / press_home

Method press_home

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

Source from the content-addressed store, hash-verified

537 }
538
539 pub fn press_home(&self, id: &str) -> Result<(), AppError> {
540 let serial = self.serial_for_id(id)?;
541 self.run_adb(["-s", &serial, "shell", "input", "keyevent", "3"])?;
542 Ok(())
543 }
544
545 pub fn open_app_switcher(&self, id: &str) -> Result<(), AppError> {
546 let serial = self.serial_for_id(id)?;

Callers 2

mainFunction · 0.45
press_buttonMethod · 0.45

Calls 2

serial_for_idMethod · 0.80
run_adbMethod · 0.80

Tested by

no test coverage detected