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

Function get_pasteboard

packages/server/src/api/routes.rs:2434–2444  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Path(udid): Path<String>,
)

Source from the content-addressed store, hash-verified

2432}
2433
2434async fn get_pasteboard(
2435 State(state): State<AppState>,
2436 Path(udid): Path<String>,
2437) -> Result<Json<Value>, AppError> {
2438 if android::is_android_id(&udid) {
2439 let text = run_android_action(state, move |android| android.pasteboard_text(&udid)).await?;
2440 return Ok(json(json_value!({ "text": text })));
2441 }
2442 let text = run_bridge_action(state, move |bridge| bridge.pasteboard_text(&udid)).await?;
2443 Ok(json(json_value!({ "text": text })))
2444}
2445
2446async fn set_pasteboard(
2447 State(state): State<AppState>,

Callers

nothing calls this directly

Calls 5

is_android_idFunction · 0.85
run_android_actionFunction · 0.85
jsonFunction · 0.85
run_bridge_actionFunction · 0.85
pasteboard_textMethod · 0.45

Tested by

no test coverage detected