low_memory_warning


Description:

public virtual signal void low_memory_warning (MemoryMonitorWarningLevel level)

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 MemoryMonitorWarningLevel documentation for details.

Since the [iface@Gio.MemoryMonitor] is a singleton, this signal will be emitted in the [func@GLib.MainContext.default][global-default main context].

Parameters:

level

the MemoryMonitorWarningLevel warning level