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

Function onLoaded

apps/ui/src/animation/animation-army-100-page.ts:5–12  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

3
4let fpsCallbackId;
5export function onLoaded(args) {
6 const page = args.object;
7 const fpsLabel = getViewById(page, 'fps') as Label;
8 fpsCallbackId = fpsMeter.addCallback((fps: number, minFps: number) => {
9 fpsLabel.text = `${fps.toFixed(2)}/${minFps.toFixed(2)}`;
10 });
11 fpsMeter.start();
12}
13
14export function onUnloaded() {
15 fpsMeter.removeCallback(fpsCallbackId);

Callers

nothing calls this directly

Calls 2

getViewByIdFunction · 0.90
startMethod · 0.45

Tested by

no test coverage detected