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

Method rotate_right

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

Source from the content-addressed store, hash-verified

760 }
761
762 pub fn rotate_right(&self, udid: &str) -> Result<(), AppError> {
763 if self.simulator_has_fixed_orientation(udid).unwrap_or(false) {
764 return Err(fixed_orientation_error());
765 }
766 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
767 unsafe {
768 let mut error = ptr::null_mut();
769 bool_result(
770 ffi::xcw_native_rotate_right(udid.as_ptr(), &mut error),
771 error,
772 )
773 }
774 }
775
776 pub fn rotate_left(&self, udid: &str) -> Result<(), AppError> {
777 if self.simulator_has_fixed_orientation(udid).unwrap_or(false) {

Callers 4

run_batch_stepFunction · 0.45
run_control_messageFunction · 0.45

Calls 5

fixed_orientation_errorFunction · 0.85
bool_resultFunction · 0.85
xcw_native_rotate_rightFunction · 0.85

Tested by

no test coverage detected