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

Method toggle_appearance

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

Source from the content-addressed store, hash-verified

392 }
393
394 pub fn toggle_appearance(&self, udid: &str) -> Result<(), AppError> {
395 unsafe {
396 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
397 let mut error = ptr::null_mut();
398 bool_result(
399 ffi::xcw_native_toggle_appearance(udid.as_ptr(), &mut error),
400 error,
401 )
402 }
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()))?;

Callers 4

run_batch_stepFunction · 0.45

Calls 2

bool_resultFunction · 0.85

Tested by

no test coverage detected