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

Method onBackPressed

packages/core/ui/core/view/index.android.ts:781–791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

779 }
780
781 public onBackPressed(): boolean {
782 const topmostFrame = topmost();
783
784 // Delegate back navigation handling to the topmost Frame
785 // when it's a child of the current View.
786 if (topmostFrame && topmostFrame._hasAncestorView(this)) {
787 return topmostFrame.onBackPressed();
788 }
789
790 return false;
791 }
792
793 public handleGestureTouch(event: android.view.MotionEvent): any {
794 // This keeps a copy of gesture observers from the map to ensure concurrency

Callers

nothing calls this directly

Calls 2

topmostFunction · 0.90
onBackPressedMethod · 0.65

Tested by

no test coverage detected