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

Method onBackPressed

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

Source from the content-addressed store, hash-verified

344 }
345
346 public onBackPressed(): boolean {
347 if (this.canGoBack()) {
348 this.goBack();
349
350 return true;
351 }
352
353 if (!this.navigationQueueIsEmpty()) {
354 const manager = this._getFragmentManager();
355 if (manager) {
356 manager.executePendingTransactions();
357
358 return true;
359 }
360 }
361
362 return false;
363 }
364
365 // HACK: This @profile decorator creates a circular dependency
366 // HACK: because the function parameter type is evaluated with 'typeof'

Callers

nothing calls this directly

Calls 4

_getFragmentManagerMethod · 0.80
canGoBackMethod · 0.45
goBackMethod · 0.45

Tested by

no test coverage detected