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

Method updateContent

framework/ui/platforms/android/src/WindowCore.cpp:221–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 bool WindowCore::handleBackPressed() { return false; }
220
221 void WindowCore::updateContent(const std::shared_ptr<View> &view)
222 {
223 bdn::android::wrapper::NativeViewGroup parentGroup(getJView().getRef_());
224
225 parentGroup.removeAllViews();
226
227 if (view) {
228 if (auto childCore = view->core<android::ViewCore>()) {
229 parentGroup.addView(childCore->getJView());
230 } else {
231 throw std::runtime_error("Cannot set this type of View as content");
232 }
233 }
234
235 updateChildren();
236 }
237
238 Rect WindowCore::getScreenWorkArea() const
239 {

Callers

nothing calls this directly

Calls 2

getRef_Method · 0.80
addViewMethod · 0.80

Tested by

no test coverage detected