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

Function onShownModally

apps/automated/src/ui/page/modal-page.ts:10–19  ·  view source on GitHub ↗
(args: ShownModallyData)

Source from the content-addressed store, hash-verified

8}
9
10export function onShownModally(args: ShownModallyData) {
11 let page = <Page>args.object;
12 TKUnit.assertNotNull(page);
13 if (args.context) {
14 args.context.shownModally = true;
15 }
16
17 TKUnit.assertEqual(Frame.topmost().currentPage.modal, page, 'Frame.topmost().currentPage.modal should be equal to the page instance on page.shownModally event handler.');
18 args.closeCallback('return value');
19}

Callers

nothing calls this directly

Calls 2

topmostMethod · 0.45
closeCallbackMethod · 0.45

Tested by

no test coverage detected