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

Function screen_mask_png

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

Source from the content-addressed store, hash-verified

3279}
3280
3281async fn screen_mask_png(
3282 State(state): State<AppState>,
3283 Path(udid): Path<String>,
3284) -> Result<(StatusCode, HeaderMap, Vec<u8>), AppError> {
3285 if android::is_android_id(&udid) {
3286 return Err(AppError::not_found(
3287 "Android emulators do not expose screen mask assets.",
3288 ));
3289 }
3290 let png = run_bridge_action(state, move |bridge| bridge.screen_mask_png(&udid)).await?;
3291 let headers = chrome_asset_headers();
3292 Ok((StatusCode::OK, headers, png))
3293}
3294
3295async fn accessibility_tree(
3296 State(state): State<AppState>,

Callers

nothing calls this directly

Calls 4

is_android_idFunction · 0.85
run_bridge_actionFunction · 0.85
chrome_asset_headersFunction · 0.85
screen_mask_pngMethod · 0.80

Tested by

no test coverage detected