Gjsify LogoGjsify Logo

Enumeration 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 ();

Index

Enumeration Members

Enumeration Members

CRITICAL: number

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

LOW: number

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

MEDIUM: number

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.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method