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

Function handle_android_control_touch

packages/server/src/api/routes.rs:2811–2822  ·  view source on GitHub ↗
(
    state: AppState,
    udid: String,
    x: f64,
    y: f64,
    phase: String,
)

Source from the content-addressed store, hash-verified

2809}
2810
2811async fn handle_android_control_touch(
2812 state: AppState,
2813 udid: String,
2814 x: f64,
2815 y: f64,
2816 phase: String,
2817) -> Result<(), AppError> {
2818 run_android_action(state, move |android| {
2819 android.send_touch(&udid, x, y, &phase)
2820 })
2821 .await
2822}
2823
2824async fn webrtc_offer(
2825 State(state): State<AppState>,

Callers 1

Calls 2

run_android_actionFunction · 0.85
send_touchMethod · 0.45

Tested by

no test coverage detected