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

Method create_input_session

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

Source from the content-addressed store, hash-verified

845 }
846
847 pub fn create_input_session(&self, udid: &str) -> Result<NativeInputSession, AppError> {
848 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
849 unsafe {
850 let mut error = ptr::null_mut();
851 let handle = ffi::xcw_native_input_create(udid.as_ptr(), &mut error);
852 if handle.is_null() {
853 return Err(take_error(error).unwrap_or_else(|| {
854 AppError::native("Unable to create native input session.")
855 }));
856 }
857 Ok(NativeInputSession { handle })
858 }
859 }
860
861 pub fn create_session(&self, udid: &str) -> Result<NativeSession, AppError> {
862 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;

Callers 11

mainFunction · 0.80
run_multitouch_framesFunction · 0.80
perform_tapFunction · 0.80
perform_swipeFunction · 0.80
type_textFunction · 0.80
run_batch_stepFunction · 0.80
resolve_tap_targetFunction · 0.80
perform_tap_payloadFunction · 0.80
perform_scroll_inputFunction · 0.80
run_batch_stepFunction · 0.80

Calls 2

xcw_native_input_createFunction · 0.85
take_errorFunction · 0.85

Tested by

no test coverage detected