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

callbacksignal 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)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID