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

Method launch_bundle

packages/server/src/native/bridge.rs:417–427  ·  view source on GitHub ↗
(&self, udid: &str, bundle_id: &str)

Source from the content-addressed store, hash-verified

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()))?;
419 let bundle = CString::new(bundle_id).map_err(|e| AppError::bad_request(e.to_string()))?;
420 unsafe {
421 let mut error = ptr::null_mut();
422 bool_result(
423 ffi::xcw_native_launch_bundle(udid.as_ptr(), bundle.as_ptr(), &mut error),
424 error,
425 )
426 }
427 }
428
429 pub fn chrome_profile(&self, udid: &str) -> Result<ChromeProfile, AppError> {
430 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;

Callers 1

run_batch_stepFunction · 0.80

Calls 2

bool_resultFunction · 0.85
xcw_native_launch_bundleFunction · 0.85

Tested by

no test coverage detected