The HMS Core SDK plug-in provided by Cocos SDKHub is able to hide or display the floating window by API calls, which means you don’t need to call the showToolBar or hideToolBar method. But you can also choose to use the APIs by yourself. Display the floating window: sdkhub.getUserPlugin().showToolBar(); Hide the floating window: sdkhub.getUserPlugin().hideToolBar(); Note that if the floating window is not displayed on a device running EMUI 9.1 or later during the test, just go to Settings > Apps > AppAssistant > Game Space, tap Add games to add your game, and test it again.