MCPcopy Create free account
hub / github.com/borndotcom/react-native-godot / updateWindow

Method updateWindow

android/src/main/cpp/GodotModule.cpp:605–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605void GodotModule::updateWindow(std::string name, bool adding) {
606 LibGodot::updateWindow(name);
607 AndroidPlatformData *data = static_cast<AndroidPlatformData *>(_data);
608 std::function<void(bool)> cb;
609 {
610 std::lock_guard lock(data->windowUpdateMutex);
611 if (!data->windowUpdateCallbacks.contains(name)) {
612 return;
613 }
614 cb = data->windowUpdateCallbacks[name].func;
615 }
616 cb(true);
617}
618
619void GodotModule::updateWindows(bool adding) {
620 LibGodot::updateWindows();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected