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

Function isReady

packages/vite/hmr/client/index.ts:1253–1261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1251 const isAndroid = !!(App && (App as any).android !== undefined);
1252 if (isAndroid) {
1253 const isReady = () => {
1254 try {
1255 const a: any = (App as any).android;
1256 const act = a && (a.foregroundActivity || a.startActivity);
1257 return !!act;
1258 } catch {
1259 return false;
1260 }
1261 };
1262 const waitFor = async (pred: () => boolean, ms = 6000, step = 60) => {
1263 const start = Date.now();
1264 while (Date.now() - start < ms) {

Callers 2

withEventsFunction · 0.70
onAnyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected