Enum MainLoop.Constants

enum Constants : int { ... }

Enum members

NameDescription
notificationAppPaused Notification received from the OS when the app is paused. Specific to the Android platform.
notificationAppResumed Notification received from the OS when the app is resumed. Specific to the Android platform.
notificationCrash Notification received from Godot's crash handler when the engine is about to crash. Implemented on desktop platforms if the crash handler is enabled.
notificationOsImeUpdate Notification received from the OS when an update of the Input Method Engine occurs (e.g. change of IME cursor position or composition string). Specific to the macOS platform.
notificationOsMemoryWarning Notification received from the OS when the application is exceeding its allocated memory. Specific to the iOS platform.
notificationTranslationChanged Notification received when translations may have changed. Can be triggered by the user changing the locale. Can be used to respond to language changes, for example to change the UI strings on the fly. Useful when working with the built-in translation support, like GodotObject.tr.
notificationWmAbout Notification received from the OS when a request for "About" information is sent. Specific to the macOS platform.
notificationWmFocusIn Notification received from the OS when the game window is focused. Implemented on all platforms.
notificationWmFocusOut Notification received from the OS when the game window is unfocused. Implemented on all platforms.
notificationWmGoBackRequest Notification received from the OS when a go back request is sent (e.g. pressing the "Back" button on Android). Specific to the Android platform.
notificationWmMouseEnter Notification received from the OS when the mouse enters the game window. Implemented on desktop and web platforms.
notificationWmMouseExit Notification received from the OS when the mouse leaves the game window. Implemented on desktop and web platforms.
notificationWmQuitRequest Notification received from the OS when a quit request is sent (e.g. closing the window with a "Close" button or Alt+F4). Implemented on desktop platforms.
notificationWmUnfocusRequest Notification received from the OS when an unfocus request is sent (e.g. another OS window wants to take the focus). No supported platforms currently send this notification.