Skip to content

Commit 072a83d

Browse files
committed
docs: add documentation for method windowFocusChanged
1 parent d7778b5 commit 072a83d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export default Unity;
163163

164164
- `unloadUnity()` - the Unity is unloaded automatically when the react-native component is unmounted, but if you want to unload the Unity, you can call this method
165165
- `pauseUnity?: (pause: boolean)` - pause the Unity
166+
- `windowFocusChanged(hasFocus: boolean = false)` - simulate focus change (intended to be used to recover from black screen (not rendering) after remounting Unity view when `resumeUnity` does not work) **ANDROID ONLY**
166167

167168
# Contributing
168169

0 commit comments

Comments
 (0)