MCPcopy Index your code
hub / github.com/callstack/agent-device / readAndroidAlertCandidate

Function readAndroidAlertCandidate

src/platforms/android/alert.ts:122–135  ·  view source on GitHub ↗
(
  device: DeviceInfo,
)

Source from the content-addressed store, hash-verified

120}
121
122async function readAndroidAlertCandidate(
123 device: DeviceInfo,
124): Promise<AndroidAlertCandidate | null> {
125 const result = await withDiagnosticTimer(
126 'snapshot_capture',
127 async () =>
128 await snapshotAndroid(device, {
129 helperWaitForIdleTimeoutMs: 0,
130 includeHiddenContentHints: false,
131 }),
132 { backend: 'android', purpose: 'alert' },
133 );
134 return findAndroidAlertCandidate(result.nodes);
135}
136
137function buildAndroidAlertStatusResponse(alert: AndroidAlertInfo | null): AndroidAlertResult {
138 return {

Callers 2

handleAndroidAlertFunction · 0.85

Calls 3

withDiagnosticTimerFunction · 0.90
snapshotAndroidFunction · 0.90

Tested by

no test coverage detected