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

Method set_pasteboard_text

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

Source from the content-addressed store, hash-verified

406 }
407
408 pub fn set_pasteboard_text(&self, id: &str, text: &str) -> Result<(), AppError> {
409 let serial = self.serial_for_id(id)?;
410 let output =
411 self.run_adb_shell(&serial, &format!("cmd clipboard set {}", shell_quote(text)))?;
412 ensure_android_clipboard_available(&output)?;
413 Ok(())
414 }
415
416 pub fn pasteboard_text(&self, id: &str) -> Result<String, AppError> {
417 let serial = self.serial_for_id(id)?;

Callers

nothing calls this directly

Calls 3

serial_for_idMethod · 0.80
run_adb_shellMethod · 0.80

Tested by

no test coverage detected