MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / isReady

Function isReady

packages/vite/runtime/core-aliases-early.ts:188–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186 const origReset = (App && App.resetRootView) || (proto && proto.resetRootView);
187 if (typeof origReset === 'function' && !g['__NS_DEV_PATCHED_RESET_ROOT__']) {
188 const isReady = () => {
189 try {
190 const a: any = App.android;
191 return !!(a && (a.foregroundActivity || a.startActivity));
192 } catch {
193 return false;
194 }
195 };
196 const once = (fn: () => void, timeoutMs = 6000) => {
197 try {
198 const a: any = App.android;

Callers 3

tickFunction · 0.70
onAnyFunction · 0.70
installCoreAliasesEarlyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected