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

Method _onRootViewReset

packages/core/ui/frame/index.android.ts:228–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 }
227
228 public _onRootViewReset(): void {
229 super._onRootViewReset();
230 // used to handle the "first" navigate differently on first run and on reset
231 this._isReset = true;
232 // call this AFTER the super call to ensure descendants apply their rootview-reset logic first
233 // i.e. in a scenario with nested frames / frame with tabview let the descendandt cleanup the inner
234 // fragments first, and then cleanup the parent fragments
235 this.disposeCurrentFragment();
236 }
237
238 onLoaded(): void {
239 if (this._originalBackground) {

Callers 3

setWindowContentMethod · 0.45
_onRootViewResetFunction · 0.45
resetActivityContentMethod · 0.45

Calls 1

Tested by

no test coverage detected