MemoryMonitorWarningLevel

Memory availability warning levels.

Note that because new values might be added, it is recommended that applications check #GMemoryMonitorWarningLevel as ranges, for example: | if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW) drop_caches (); |

Since

2.64

Entries

Link copied to clipboard

Memory on the device is low, processes should free up unneeded resources (for example, in-memory caches) so they can be used elsewhere.

Link copied to clipboard

Same as @G_MEMORY_MONITOR_WARNING_LEVEL_LOW but the device has even less free memory, so processes should try harder to free up unneeded resources. If your process does not need to stay running, it is a good time for it to quit.

Link copied to clipboard

The system will soon start terminating processes to reclaim memory, including background processes.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.