MCPcopy
hub / github.com/callstack/agent-device / captureAndroidUiHierarchyXml

Function captureAndroidUiHierarchyXml

src/platforms/android/snapshot.ts:78–84  ·  view source on GitHub ↗
(
  device: DeviceInfo,
  options: AndroidSnapshotOptions = {},
)

Source from the content-addressed store, hash-verified

76};
77
78export async function captureAndroidUiHierarchyXml(
79 device: DeviceInfo,
80 options: AndroidSnapshotOptions = {},
81): Promise<string> {
82 const adb = resolveAndroidAdbProvider(device, options.helperAdb).exec;
83 return (await captureAndroidUiHierarchy(device, options, adb)).xml;
84}
85
86export async function snapshotAndroid(
87 device: DeviceInfo,

Callers 2

readAndroidTextAtPointFunction · 0.90
inspectAndroidFilledTextFunction · 0.90

Calls 2

Tested by

no test coverage detected