Interface

Gio-2.0GioMemoryMonitorSignalSignatures

interface SignalSignatures {
    "low-memory-warning": (level: Gio.MemoryMonitorWarningLevel) => void;
}
Index
"low-memory-warning": (level: Gio.MemoryMonitorWarningLevel) => void

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

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

2.64