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

Method navigate

packages/core/ui/frame/frame-common.ts:227–252  ·  view source on GitHub ↗
(param: any)

Source from the content-addressed store, hash-verified

225 }
226
227 public navigate(param: any) {
228 if (Trace.isEnabled()) {
229 Trace.write(`NAVIGATE`, Trace.categories.Navigation);
230 }
231
232 this._pushInFrameStack();
233
234 const entry = buildEntryFromArgs(param);
235 const page = Builder.createViewFromEntry(entry) as Page;
236
237 const backstackEntry: BackstackEntry = {
238 entry: entry,
239 resolvedPage: page,
240 navDepth: undefined,
241 fragmentTag: undefined,
242 };
243
244 const navigationContext: NavigationContext = {
245 entry: backstackEntry,
246 isBackNavigation: false,
247 navigationType: NavigationType.forward,
248 };
249
250 this._navigationQueue.push(navigationContext);
251 this._processNextNavigationEntry();
252 }
253
254 public isCurrent(entry: BackstackEntry): boolean {
255 return this._currentEntry === entry;

Callers

nothing calls this directly

Calls 7

_pushInFrameStackMethod · 0.95
buildEntryFromArgsFunction · 0.85
isEnabledMethod · 0.80
createViewFromEntryMethod · 0.80
writeMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected