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

Function whenClosedCallback

packages/core/ui/core/view/view-common.ts:475–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473 };
474
475 const whenClosedCallback = () => {
476 const transitionState = SharedTransition.getState(this.transitionId);
477 if (transitionState?.interactiveBegan) {
478 SharedTransition.updateState(this.transitionId, {
479 interactiveBegan: false,
480 });
481 if (!transitionState?.interactiveCancelled) {
482 cleanupModalViews();
483 }
484 }
485
486 if (!transitionState?.interactiveCancelled) {
487 if (typeof options.closeCallback === 'function') {
488 options.closeCallback.apply(undefined, originalArgs);
489 }
490
491 this._tearDownUI(true);
492 }
493 };
494
495 const transitionState = SharedTransition.getState(this.transitionId);
496 if (!transitionState?.interactiveBegan) {

Callers 2

_hideNativeModalViewMethod · 0.85
_hideNativeModalViewMethod · 0.85

Calls 5

cleanupModalViewsFunction · 0.85
getStateMethod · 0.80
_tearDownUIMethod · 0.80
updateStateMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected