跳转到内容

接口: MemoryInfo ​

更新: 2026/9/29 字数: 0 字 时长: 0 分钟

device.MemoryInfo

通过memoryInfo获取的内存信息。

目录 ​

属性 ​

属性 ​

availMem ​

  • availMem: number

当前的系统可用内存,以字节为单位。


lowMemory ​

  • lowMemory: boolean

如果为true,则表示系统内存不足。

Set to true if the system considers itself to currently be in a low memory situation.


threshold ​

  • threshold: number

当系统的可用内存达到此内存阈值时,被认为是低内存。


totalMem ​

  • totalMem: number

当前的系统总内存,以字节为单位。