ReferenceSystemSystem:getFreeMemory()✦Use with AI▾本页总览System:getFreeMemory() 获取设备上可用的 RAM 容量。 签名 System:getFreeMemory(): number 返回值 number - 可用内存,以兆字节(MB)为单位。 示例 if System:getFreeMemory() < 300 then toast("Low memory; closing heavy apps may help")end 兼容版本:1.0.0.34 及以上