MemoryMonitor.connectLowMemoryWarning
gulong connectLowMemoryWarning(T)(T callback, Flag!"After" after = No.After)Connect to LowMemoryWarning signal.
Emitted when the system is running low on free memory. The signal handler should then take the appropriate action depending on the warning level. See the #GMemoryMonitorWarningLevel documentation for details.
Parameters
callback | signal callback delegate or function to connect void callback(gio.types.MemoryMonitorWarningLevel level, gio.memory_monitor.MemoryMonitor memoryMonitor) level the #GMemoryMonitorWarningLevel warning level (optional) memoryMonitor the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID