System:getFreeMemory()
Gibt die Menge des verfügbaren RAMs auf dem Gerät zurück.
Signatur
System:getFreeMemory(): number
Rückgabe
number – Verfügbarer Speicher in Megabyte (MB).
Beispiel
if System:getFreeMemory() < 300 then
toast("Low memory; closing heavy apps may help")
end
Kompatible Version: 1.0.0.34 und höher