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

Function fetchAccessibilityPoint

packages/client/src/api/simulators.ts:81–99  ·  view source on GitHub ↗
(
  udid: string,
  x: number,
  y: number,
  options: RequestInit & { maxDepth?: number } = {},
)

Source from the content-addressed store, hash-verified

79}
80
81export async function fetchAccessibilityPoint(
82 udid: string,
83 x: number,
84 y: number,
85 options: RequestInit & { maxDepth?: number } = {},
86): Promise<AccessibilityTreeResponse> {
87 const { maxDepth, ...requestOptions } = options;
88 const params = new URLSearchParams({
89 x: String(x),
90 y: String(y),
91 });
92 if (maxDepth != null) {
93 params.set("maxDepth", String(maxDepth));
94 }
95 return apiRequest<AccessibilityTreeResponse>(
96 `/api/simulators/${encodeURIComponent(udid)}/accessibility-point?${params}`,
97 requestOptions,
98 );
99}
100
101export async function fetchSimulatorLogs(
102 udid: string,

Callers 1

DevToolsPanelFunction · 0.90

Calls 2

apiRequestFunction · 0.90
setMethod · 0.80

Tested by

no test coverage detected