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

Function buildAndroidAlertHandledResponse

src/platforms/android/alert.ts:147–161  ·  view source on GitHub ↗
(
  action: 'accept' | 'dismiss',
  alert: AndroidAlertInfo,
  button: string,
)

Source from the content-addressed store, hash-verified

145}
146
147function buildAndroidAlertHandledResponse(
148 action: 'accept' | 'dismiss',
149 alert: AndroidAlertInfo,
150 button: string,
151): AndroidAlertResult {
152 return {
153 kind: 'alertHandled',
154 platform: 'android',
155 action,
156 handled: true,
157 alert,
158 button,
159 ...successText(`Alert ${action}ed`),
160 };
161}

Callers 1

handleAndroidAlertActionFunction · 0.85

Calls 1

successTextFunction · 0.90

Tested by

no test coverage detected