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

Method open_url

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

Source from the content-addressed store, hash-verified

368 }
369
370 pub fn open_url(&self, id: &str, url: &str) -> Result<(), AppError> {
371 let serial = self.serial_for_id(id)?;
372 self.run_adb([
373 "-s",
374 &serial,
375 "shell",
376 "am",
377 "start",
378 "-a",
379 "android.intent.action.VIEW",
380 "-d",
381 url,
382 ])?;
383 Ok(())
384 }
385
386 pub fn launch_package(&self, id: &str, package: &str) -> Result<(), AppError> {
387 let serial = self.serial_for_id(id)?;

Callers

nothing calls this directly

Calls 2

serial_for_idMethod · 0.80
run_adbMethod · 0.80

Tested by

no test coverage detected