MCPcopy Create free account
hub / github.com/cocos/cocos-engine / getWindow

Method getWindow

native/cocos/platform/java/modules/SystemWindowManager.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53ISystemWindow *SystemWindowManager::getWindow(uint32_t windowId) const {
54 if (windowId == 0) {
55 return nullptr;
56 }
57
58 auto iter = _windows.find(windowId);
59 if (iter != _windows.end()) {
60 return iter->second.get();
61 }
62 return nullptr;
63}
64
65ISystemWindow *SystemWindowManager::getWindowFromANativeWindow(ANativeWindow *window) const {
66 if (!window) {

Callers 15

handleAppCommandMethod · 0.45
createWebViewMethod · 0.45
removeWebViewMethod · 0.45
onDestroyMethod · 0.45
onCreateMethod · 0.45
setImmersiveModeMethod · 0.45
hideVirtualButtonMethod · 0.45
getSafeAreaMethod · 0.45
runMethod · 0.45
onCreateMethod · 0.45
onAttachedToWindowMethod · 0.45

Calls 3

findMethod · 0.65
endMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected