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

Method open_url

packages/server/src/native/bridge.rs:405–415  ·  view source on GitHub ↗
(&self, udid: &str, url: &str)

Source from the content-addressed store, hash-verified

403 }
404
405 pub fn open_url(&self, udid: &str, url: &str) -> Result<(), AppError> {
406 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
407 let url = CString::new(url).map_err(|e| AppError::bad_request(e.to_string()))?;
408 unsafe {
409 let mut error = ptr::null_mut();
410 bool_result(
411 ffi::xcw_native_open_url(udid.as_ptr(), url.as_ptr(), &mut error),
412 error,
413 )
414 }
415 }
416
417 pub fn launch_bundle(&self, udid: &str, bundle_id: &str) -> Result<(), AppError> {
418 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;

Callers 1

run_batch_stepFunction · 0.45

Calls 2

bool_resultFunction · 0.85
xcw_native_open_urlFunction · 0.85

Tested by

no test coverage detected