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

Function onUnloaded

packages/core/ui/core/view-base/index.ts:733–750  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

731
732 @profile
733 public onUnloaded() {
734 this.setFlag(Flags.superOnUnloadedCalled, true);
735 if (!this._isLoaded) {
736 return;
737 }
738
739 this._suspendNativeUpdates(SuspendType.Loaded);
740
741 this.eachChild((child) => {
742 this.unloadView(child);
743
744 return true;
745 });
746
747 this._isLoaded = false;
748 this._cssState.onUnloaded();
749 this._emit('unloaded');
750 }
751
752 public _layoutParent() {
753 if (this.parent) {

Callers

nothing calls this directly

Calls 3

_emitMethod · 0.80
eachChildMethod · 0.45
onUnloadedMethod · 0.45

Tested by

no test coverage detected