Interface ISystemMemoryStats
interface ISystemMemoryStats
Extends com.amazon.apmf.IStandard
Device-wide memory stats.
Provides total amount of usable memory, of available memory, and if the device is a low
memory device.
Built from ISystemResource::makeSystemMemoryStats().
Methods
getTotalBytes()
i64 getTotalBytes()
Get total memory.
Returns
i64
total memory in bytes.
Throws
DeviceError— on internal errors.
getAvailableBytes()
i64 getAvailableBytes()
Get available memory.
Memory available collectively for apps and system services.
Returns
i64
total memory in bytes.
Throws
DeviceError— on internal errors.
isLowMemoryDevice()
bool isLowMemoryDevice()
Flag that a device is configured as a low memory device.
Product has the option to statically set the device as a low memory device. Low memory
device is a hint to the app to use low allocation. One use of this flag is to determine
limits for media/asset caching.
Returns
bool
whether this device is a low memory device.

