MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / onAny

Function onAny

packages/vite/hmr/client/index.ts:1298–1304  ·  view source on GitHub ↗
(evt?: any)

Source from the content-addressed store, hash-verified

1296 resolve(ok);
1297 };
1298 const onAny = (evt?: any) => {
1299 if (VERBOSE)
1300 console.log('[hmr-client] [android] activity event', {
1301 type: evt?.eventName || 'unknown',
1302 });
1303 if (isReady()) finish(true);
1304 };
1305 try {
1306 a.on(a.activityStartedEvent || 'activityStarted', onAny);
1307 a.on(a.activityResumedEvent || 'activityResumed', onAny);

Callers

nothing calls this directly

Calls 3

isReadyFunction · 0.70
finishFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected