(args: EventData)
| 5 | import { isAndroid } from '@nativescript/core/platform'; |
| 6 | |
| 7 | export 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 | |
| 20 | export class SubMainPageViewModel extends TestPageMainViewModel { |
| 21 | constructor(container: WrapLayout, examples: Map<string, string>) { |
nothing calls this directly
no test coverage detected