MCPcopy Create free account
hub / github.com/AshampooSystems/boden / pushView

Method pushView

framework/ui/platforms/android/src/NavigationViewCore.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 NavigationViewCore::~NavigationViewCore() { getJViewAS<bdn::android::wrapper::NativeNavigationView>().close(); }
20
21 void NavigationViewCore::pushView(std::shared_ptr<View> view, std::string title)
22 {
23 auto containerView = std::make_shared<ContainerView>(viewCoreFactory());
24 containerView->isLayoutRoot = true;
25 containerView->addChildView(view);
26 containerView->visible.bind(view->visible);
27 containerView->setFallbackLayout(layout());
28
29 bool isFirst = _stack.empty();
30
31 _stack.push_back({containerView, view, title});
32 updateCurrentView(isFirst, true);
33 }
34
35 void NavigationViewCore::popView()
36 {

Callers

nothing calls this directly

Calls 4

setFallbackLayoutMethod · 0.80
emptyMethod · 0.80
addChildViewMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected