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

Method pasteboard_text

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

Source from the content-addressed store, hash-verified

836 }
837
838 pub fn pasteboard_text(&self, udid: &str) -> Result<String, AppError> {
839 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
840 unsafe {
841 let mut error = ptr::null_mut();
842 let raw = ffi::xcw_native_get_pasteboard_text(udid.as_ptr(), &mut error);
843 string_from_raw(raw, error)
844 }
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()))?;

Callers 1

get_pasteboardFunction · 0.45

Calls 2

string_from_rawFunction · 0.85

Tested by

no test coverage detected