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

Function pageLoaded

apps/ui/src/perf/memory-leaks/main-page.ts:7–18  ·  view source on GitHub ↗
(args: EventData)

Source from the content-addressed store, hash-verified

5import { isAndroid } from '@nativescript/core/platform';
6
7export function pageLoaded(args: EventData) {
8 let page = <Page>args.object;
9
10 let wrapLayout = <WrapLayout>getViewById(page, 'wrapLayoutWithExamples');
11
12 let examples: Map<string, string> = new Map<string, string>();
13 if (isAndroid) {
14 examples.set('background-image', 'perf/memory-leaks/background-image-page');
15 }
16 let viewModel = new SubMainPageViewModel(wrapLayout, examples);
17 page.bindingContext = viewModel;
18}
19
20export class SubMainPageViewModel extends TestPageMainViewModel {
21 constructor(container: WrapLayout, examples: Map<string, string>) {

Callers

nothing calls this directly

Calls 2

getViewByIdFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected