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

Method set_frame_callback

packages/server/src/native/bridge.rs:1103–1109  ·  view source on GitHub ↗
(
        &self,
        callback: Option<ffi::xcw_native_frame_callback>,
        user_data: *mut c_void,
    )

Source from the content-addressed store, hash-verified

1101 }
1102
1103 pub unsafe fn set_frame_callback(
1104 &self,
1105 callback: Option<ffi::xcw_native_frame_callback>,
1106 user_data: *mut c_void,
1107 ) {
1108 ffi::xcw_native_session_set_frame_callback(self.handle, callback, user_data);
1109 }
1110
1111 pub fn send_touch(&self, x: f64, y: f64, phase: &str) -> Result<(), AppError> {
1112 let phase = CString::new(phase).map_err(|e| AppError::bad_request(e.to_string()))?;

Callers 2

newMethod · 0.80
dropMethod · 0.80

Tested by

no test coverage detected