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

Method focus_out

android/src/main/cpp/GodotModule.cpp:447–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 return data->mainSurface;
446}
447void GodotModule::focus_out() {
448 std::lock_guard lock(_mutex);
449 AndroidPlatformData *data = static_cast<AndroidPlatformData *>(_data);
450 data->in_background = true;
451 data->thread.enqueue([this]() {
452 std::lock_guard lock(_mutex);
453 if (_instance) {
454 _instance->focus_out();
455 }
456 });
457 updateState();
458}
459
460void GodotModule::focus_in() {
461 std::lock_guard lock(_mutex);

Callers

nothing calls this directly

Calls 1

enqueueMethod · 0.80

Tested by

no test coverage detected