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

Function pageLoaded

apps/ui/src/issues/issue-7469-page.ts:34–71  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

32}
33
34export function pageLoaded(args) {
35 startFPSMeter();
36 if (loaded) {
37 fpsLabel = null;
38 // stopFPSMeter();
39 timeouts.forEach((v) => clearTimeout(v));
40 intervals.forEach((v) => clearInterval(v));
41 reusableItem._tearDownUI(true);
42 }
43 loaded = true;
44 reusableItem = args.object.getViewById('reusableItem');
45 vcToggle = args.object.getViewById('vcToggle');
46 updateVcToggleText();
47 fpsLabel = args.object.getViewById('fpslabel');
48 const stack1: StackLayout = args.object.getViewById('stack1');
49 const stack2: StackLayout = args.object.getViewById('stack2');
50 setTimeout(() => {
51 // label.android.setTextColor(new Color("red").android);
52 // label.android.setBackgroundColor(new Color("red").android);
53 startFPSMeter();
54 console.log('setRed');
55 }, 1000);
56 // console.log(label._context);
57 // isIn1 = false;
58 // timeouts.push(setTimeout(() => {
59 // intervals.push(setInterval(() => {
60 // label.parent.removeChild(label);
61 // // console.log(label.nativeView);
62 // if(isIn1) {
63 // isIn1 = false;
64 // stack2.addChild(label);
65 // } else {
66 // isIn1 = true;
67 // stack1.addChild(label);
68 // }
69 // }, 10));
70 // }, 1001));
71}
72
73export function pageUnloaded(args) {
74 //

Callers

nothing calls this directly

Calls 7

startFPSMeterFunction · 0.85
updateVcToggleTextFunction · 0.85
forEachMethod · 0.80
_tearDownUIMethod · 0.80
clearTimeoutFunction · 0.50
setTimeoutFunction · 0.50
logMethod · 0.45

Tested by

no test coverage detected